OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc2cabd
)
movdec: Free the previous extradata
author
Martin Storsjö
<martin@martin.st>
Tue, 5 Oct 2010 21:36:30 +0000
(21:36 +0000)
committer
Martin Storsjö
<martin@martin.st>
Tue, 5 Oct 2010 21:36:30 +0000
(21:36 +0000)
If multiple stsd atoms are parsed for the same stream, the old
extradata would be leaked.
Originally committed as revision 25360 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mov.c
patch
|
blob
|
history
diff --git
a/libavformat/mov.c
b/libavformat/mov.c
index
8c65f4b
..
4eea795
100644
(file)
--- a/
libavformat/mov.c
+++ b/
libavformat/mov.c
@@
-528,6
+528,7
@@
int ff_mov_read_esds(AVFormatContext *fc, ByteIOContext *pb, MOVAtom atom)
dprintf(fc, "Specific MPEG4 header len=%d\n", len);
if((uint64_t)len > (1<<30))
return -1;
+ av_free(st->codec->extradata);
st->codec->extradata = av_mallocz(len + FF_INPUT_BUFFER_PADDING_SIZE);
if (!st->codec->extradata)
return AVERROR(ENOMEM);