[FFmpeg-cvslog] avformat/apngdec: Don't free extradata manually
Andreas Rheinhardt
git at videolan.org
Thu Dec 12 20:39:42 EET 2019
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Tue Dec 10 22:59:47 2019 +0100| [c1d300f83a006219b2ffd95648d2438cf8b2a094] | committer: Michael Niedermayer
avformat/apngdec: Don't free extradata manually
The extradata will be freed automatically when the corresponding stream
gets freed.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c1d300f83a006219b2ffd95648d2438cf8b2a094
---
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;
}
More information about the ffmpeg-cvslog
mailing list