diff mbox series

[FFmpeg-devel,13/15] avcodec/mpegvideo: Remove pointless check

Message ID GV1P250MB0737CF3FE66879CE338DFE0F8F032@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 94295bb57407fac57defc77fe59ea4cfdbe113c0
Headers show
Series [FFmpeg-devel,01/15] avcodec/mpegvideo_enc: Don't update current_picture unnecessarily | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt April 5, 2024, 12:41 p.m. UTC
Possible since 315c956cbd14f021e49dac7fc0b906fad1672aad.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/mpegvideo.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 8a733afdb8..7af823b8bd 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -789,9 +789,6 @@  void ff_mpv_common_end(MpegEncContext *s)
     av_freep(&s->bitstream_buffer);
     s->allocated_bitstream_buffer_size = 0;
 
-    if (!s->avctx)
-        return;
-
     if (s->picture) {
         for (int i = 0; i < MAX_PICTURE_COUNT; i++)
             ff_mpv_picture_free(&s->picture[i]);