mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 05:24:42 +00:00
mpegvideo_enc: reset mb_x/y before writing the headers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
717a1876d8
commit
e2c54d4d72
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user