Calculation if mpeg2video sequence header based in mpeg12enc.c from libav

Signed-off-by: Michel Verbraak <info@1st-setup.nl>