[FFmpeg-cvslog] mpeg12enc: Correctly mask dimensions
Michael Niedermayer
git at videolan.org
Fri Jan 18 05:23:18 CET 2013
ffmpeg | branch: release/1.1 | Michael Niedermayer <michaelni at gmx.at> | Mon Jan 7 15:31:58 2013 +0100| [d7cff9f8e8f19f8505b189071de66884689558e0] | committer: Michael Niedermayer
mpeg12enc: Correctly mask dimensions
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d7cff9f8e8f19f8505b189071de66884689558e0
---
libavcodec/mpeg12enc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c
index 6374a97..e894746 100644
--- a/libavcodec/mpeg12enc.c
+++ b/libavcodec/mpeg12enc.c
@@ -227,8 +227,8 @@ static void mpeg1_encode_sequence_header(MpegEncContext *s)
/* mpeg1 header repeated every gop */
put_header(s, SEQ_START_CODE);
- put_sbits(&s->pb, 12, s->width );
- put_sbits(&s->pb, 12, s->height);
+ put_sbits(&s->pb, 12, s->width & 0xFFF);
+ put_sbits(&s->pb, 12, s->height & 0xFFF);
for(i=1; i<15; i++){
float error= aspect_ratio;
More information about the ffmpeg-cvslog
mailing list