The extradata will be freed automatically when the corresponding stream gets freed.
Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@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 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".