diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-15 22:09:56 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-08-15 22:09:56 +0200 |
commit | e2c54d4d72d3a94fab55067056be8c55f6b6c3e5 (patch) | |
tree | 9c95e052bf8ea64c4449020b1656e2584a1deb2a /libavcodec | |
parent | 717a1876d8720386fe02d07db319ee73e46ac67e (diff) | |
download | ffmpeg-e2c54d4d72d3a94fab55067056be8c55f6b6c3e5.tar.gz |
mpegvideo_enc: reset mb_x/y before writing the headers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 5137dfa628..a8feeb6fb3 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: |