Merge commit '93f919d0b4c4341ccee366c98ac9af813f8fe622' into release/1.1
* commit '93f919d0b4c4341ccee366c98ac9af813f8fe622': mov: avoid a memleak when multiple stss boxes are present Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1690,6 +1690,7 @@ static int mov_read_stss(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
}
|
||||
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);
|
||||
|
Reference in New Issue
Block a user