[FFmpeg-cvslog] avformat/flic: se av_freep() to avoid leaving stale extradata pointer
Michael Niedermayer
git at videolan.org
Mon Dec 15 16:01:36 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at 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 <michaelni at 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);
More information about the ffmpeg-cvslog
mailing list