]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/mss3: Remove unnecessary free of unallocated frame
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 29 Aug 2020 06:49:45 +0000 (08:49 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 30 Aug 2020 00:58:52 +0000 (02:58 +0200)
The frame will only be allocated a few lines below.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/mss3.c

index 113af5ba37b8b91e8ad2be0d427382326e4e0edd..a301675ec293261d26f067c36c63912d0103bcf9 100644 (file)
@@ -844,7 +844,6 @@ static av_cold int mss3_decode_init(AVCodecContext *avctx)
                                             b_width * b_height);
         if (!c->dct_coder[i].prev_dc) {
             av_log(avctx, AV_LOG_ERROR, "Cannot allocate buffer\n");
-            av_frame_free(&c->pic);
             while (i >= 0) {
                 av_freep(&c->dct_coder[i].prev_dc);
                 i--;