Commit bcc4ef1a authored by Michael Niedermayer's avatar Michael Niedermayer

mpeg12enc: Correctly mask dimensions

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 878e5bd6
...@@ -227,8 +227,8 @@ static void mpeg1_encode_sequence_header(MpegEncContext *s) ...@@ -227,8 +227,8 @@ static void mpeg1_encode_sequence_header(MpegEncContext *s)
/* mpeg1 header repeated every gop */ /* mpeg1 header repeated every gop */
put_header(s, SEQ_START_CODE); put_header(s, SEQ_START_CODE);
put_sbits(&s->pb, 12, s->width ); put_sbits(&s->pb, 12, s->width & 0xFFF);
put_sbits(&s->pb, 12, s->height); put_sbits(&s->pb, 12, s->height & 0xFFF);
for(i=1; i<15; i++){ for(i=1; i<15; i++){
float error= aspect_ratio; float error= aspect_ratio;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment