Message ID | 20191210215955.11178-3-andreas.rheinhardt@gmail.com |
---|---|
State | Accepted |
Commit | c1d300f83a006219b2ffd95648d2438cf8b2a094 |
Headers | show |
On Tue, Dec 10, 2019 at 10:59:47PM +0100, Andreas Rheinhardt wrote: > The extradata will be freed automatically when the corresponding stream > gets freed. > > Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> > --- > libavformat/apngdec.c | 4 ---- > 1 file changed, 4 deletions(-) will apply thx [...]
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; }
The extradata will be freed automatically when the corresponding stream gets freed. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> --- libavformat/apngdec.c | 4 ---- 1 file changed, 4 deletions(-)