mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 06:05:32 +01:00
avcodec/mpegvideo_enc: Remove redundant unref+ref
Setting current_picture will already be done in frame_start(). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -1529,11 +1529,6 @@ no_output_pic:
|
||||
s->new_picture->data[i] += INPLACE_OFFSET;
|
||||
}
|
||||
}
|
||||
ff_mpeg_unref_picture(s->avctx, &s->current_picture);
|
||||
if ((ret = ff_mpeg_ref_picture(s->avctx, &s->current_picture,
|
||||
s->current_picture_ptr)) < 0)
|
||||
return ret;
|
||||
|
||||
s->picture_number = s->new_picture->display_picture_number;
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user