[FFmpeg-devel] [PATCH 03/11] avformat/apngdec: Don't free extradata manually

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Tue Dec 10 23:59:47 EET 2019


The extradata will be freed automatically when the corresponding stream
gets freed.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
 libavformat/apngdec.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/libavformat/apngdec.c b/libavformat/apngdec.c
index b5696e069c..0f1d04a365 100644
--- a/libavformat/apngdec.c
+++ b/libavformat/apngdec.c
@@ -241,10 +241,6 @@ static int apng_read_header(AVFormatContext *s)
     }
 
 fail:
-    if (st->codecpar->extradata_size) {
-        av_freep(&st->codecpar->extradata);
-        st->codecpar->extradata_size = 0;
-    }
     return ret;
 }
 
-- 
2.20.1



More information about the ffmpeg-devel mailing list