[FFmpeg-cvslog] avcodec/on2avc: Remove redundant code for freeing

Andreas Rheinhardt git at videolan.org
Wed Oct 21 17:12:53 EEST 2020


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Mon Oct 19 06:03:18 2020 +0200| [2beb7f43f6ab5f5deaf7dbc846f99355d9f8652e] | committer: Andreas Rheinhardt

avcodec/on2avc: Remove redundant code for freeing

This decoder has the FF_CODEC_CAP_INIT_CLEANUP set.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2beb7f43f6ab5f5deaf7dbc846f99355d9f8652e
---

 libavcodec/on2avc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/on2avc.c b/libavcodec/on2avc.c
index 625e733ca3..60adc32b9f 100644
--- a/libavcodec/on2avc.c
+++ b/libavcodec/on2avc.c
@@ -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);
 }
 



More information about the ffmpeg-cvslog mailing list