[FFmpeg-cvslog] mpegvideo_enc: reset mb_x/y before writing the headers

Michael Niedermayer git at videolan.org
Wed Aug 15 22:18:08 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Aug 15 22:09:56 2012 +0200| [e2c54d4d72d3a94fab55067056be8c55f6b6c3e5] | committer: Michael Niedermayer

mpegvideo_enc: reset mb_x/y before writing the headers

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e2c54d4d72d3a94fab55067056be8c55f6b6c3e5
---

 libavcodec/mpegvideo_enc.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 5137dfa..a8feeb6 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -3352,6 +3352,7 @@ static int encode_picture(MpegEncContext *s, int picture_number)
     if (s->current_picture.f.key_frame)
         s->picture_in_gop_number=0;
 
+    s->mb_x = s->mb_y = 0;
     s->last_bits= put_bits_count(&s->pb);
     switch(s->out_format) {
     case FMT_MJPEG:



More information about the ffmpeg-cvslog mailing list