Commit 480cd822 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/flic: se av_freep() to avoid leaving stale extradata pointer

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0051e3c2
......@@ -175,7 +175,7 @@ static int flic_read_header(AVFormatContext *s)
avio_seek(pb, 12, SEEK_SET);
/* send over abbreviated FLIC header chunk */
av_free(st->codec->extradata);
av_freep(&st->codec->extradata);
if (ff_alloc_extradata(st->codec, 12))
return AVERROR(ENOMEM);
memcpy(st->codec->extradata, header, 12);
......
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