[FFmpeg-devel] [PATCH 5/5] avcodec/on2avc: Remove redundant code for freeing

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Mon Oct 19 14:07:06 EEST 2020


This decoder has the FF_CODEC_CAP_INIT_CLEANUP set.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
 libavcodec/on2avc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/on2avc.c b/libavcodec/on2avc.c
index 3b566e1e4b..2453343be9 100644
--- a/libavcodec/on2avc.c
+++ b/libavcodec/on2avc.c
@@ -978,7 +978,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);
     return AVERROR(ENOMEM);
 }
 
-- 
2.25.1



More information about the ffmpeg-devel mailing list