OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0051e3c
)
avformat/flic: se av_freep() to avoid leaving stale extradata pointer
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 15 Dec 2014 14:49:00 +0000
(15:49 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 15 Dec 2014 14:49:00 +0000
(15:49 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/flic.c
patch
|
blob
|
history
diff --git
a/libavformat/flic.c
b/libavformat/flic.c
index
f5e9e84
..
bef70c1
100644
(file)
--- 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_free
p(&
st->codec->extradata);
if (ff_alloc_extradata(st->codec, 12))
return AVERROR(ENOMEM);
memcpy(st->codec->extradata, header, 12);