]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/on2avc: Remove redundant code for freeing
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 19 Oct 2020 04:03:18 +0000 (06:03 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 21 Oct 2020 05:51:05 +0000 (07:51 +0200)
This decoder has the FF_CODEC_CAP_INIT_CLEANUP set.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/on2avc.c

index 625e733ca3ba35f2ea15857e74ba1a5fdda003b4..60adc32b9f775707d133e89cbe1489807bbb3828 100644 (file)
@@ -974,8 +974,6 @@ static av_cold int on2avc_decode_init(AVCodecContext *avctx)
     return 0;
 vlc_fail:
     av_log(avctx, AV_LOG_ERROR, "Cannot init VLC\n");
-    on2avc_free_vlcs(c);
-    av_freep(&c->fdsp);
     return AVERROR(ENOMEM);
 }