Skip to content

Commit

Permalink
avformat/apngdec: Don't free extradata manually
Browse files Browse the repository at this point in the history
The extradata will be freed automatically when the corresponding stream
gets freed.

Signed-off-by: Andreas Rheinhardt <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
mkver authored and michaelni committed Dec 12, 2019
1 parent 2e328a8 commit c1d300f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libavformat/apngdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c1d300f

Please sign in to comment.