diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-02-03 01:39:56 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-04-01 17:03:03 +0200 |
commit | 451300d0e81392cd45bdce8dc5b56fb6913720ca (patch) | |
tree | 70b8cfec45648dc84943f0c0c79482af4276ee58 /libavcodec/mpegvideo_enc.c | |
parent | 37250f7f643708d506394c63b425db7acb35a9c4 (diff) | |
download | ffmpeg-451300d0e81392cd45bdce8dc5b56fb6913720ca.tar.gz |
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>
Diffstat (limited to 'libavcodec/mpegvideo_enc.c')
-rw-r--r-- | libavcodec/mpegvideo_enc.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index 58594e1696..3dd0fc7c30 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -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; |