diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-12-10 22:59:47 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-12-12 19:25:33 +0100 |
commit | c1d300f83a006219b2ffd95648d2438cf8b2a094 (patch) | |
tree | 66c2e9a51b2b1426b33df22f739d059c578f4173 | |
parent | 2e328a8a38e06e4737bc1253a568558a7c514e77 (diff) | |
download | ffmpeg-c1d300f83a006219b2ffd95648d2438cf8b2a094.tar.gz |
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@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/apngdec.c | 4 |
1 files changed, 0 insertions, 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; } |