summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-03-11 22:20:28 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-11 22:20:32 +0100
commit522c7c37d23538183d94e960dcb9160441726124 (patch)
tree302cec5ae717ec4a5c113c900f115047b508feec /libavformat
parent525689ede90699df29aaa700fb45fd5659d4ce4e (diff)
parent0ceb2dffb6ba082a8abcc57c53a14b2512f0aa48 (diff)
downloadffmpeg-522c7c37d23538183d94e960dcb9160441726124.tar.gz
Merge commit '0ceb2dffb6ba082a8abcc57c53a14b2512f0aa48' into release/0.10
* commit '0ceb2dffb6ba082a8abcc57c53a14b2512f0aa48': mov: avoid a memleak when multiple stss boxes are present Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mov.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index dd26488aa2..5fbd6217ad 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1587,6 +1587,7 @@ static int mov_read_stss(MOVContext *c, AVIOContext *pb, MOVAtom atom)
return 0;
if (entries >= UINT_MAX / sizeof(int))
return AVERROR_INVALIDDATA;
+ av_freep(&sc->keyframes);
sc->keyframes = av_malloc(entries * sizeof(int));
if (!sc->keyframes)
return AVERROR(ENOMEM);