ffmpeg | branch: master | Michael Niedermayer <michae...@gmx.at> | Mon Dec 15 15:49:00 2014 +0100| [480cd822b3da863e94303740b45f7fe512f55c12] | committer: Michael Niedermayer
avformat/flic: se av_freep() to avoid leaving stale extradata pointer Signed-off-by: Michael Niedermayer <michae...@gmx.at> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=480cd822b3da863e94303740b45f7fe512f55c12 --- libavformat/flic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/flic.c b/libavformat/flic.c index f5e9e84..bef70c1 100644 --- a/libavformat/flic.c +++ b/libavformat/flic.c @@ -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); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog