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>
This commit is contained in:
Andreas Rheinhardt 2019-12-10 22:59:47 +01:00 committed by Michael Niedermayer
parent 2e328a8a38
commit c1d300f83a

View File

@ -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;
}