Commit c1d300f8 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt Committed by Michael Niedermayer

avformat/apngdec: Don't free extradata manually

The extradata will be freed automatically when the corresponding stream
gets freed.
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 2e328a8a
...@@ -241,10 +241,6 @@ static int apng_read_header(AVFormatContext *s) ...@@ -241,10 +241,6 @@ static int apng_read_header(AVFormatContext *s)
} }
fail: fail:
if (st->codecpar->extradata_size) {
av_freep(&st->codecpar->extradata);
st->codecpar->extradata_size = 0;
}
return ret; return ret;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment