Commit fb37d03a authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '2620df13'

* commit '2620df13':
  mov: Free an earlier allocated array if allocating a new one
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 04cc753d 2620df13
......@@ -1913,6 +1913,7 @@ static int mov_read_stts(MOVContext *c, AVIOContext *pb, MOVAtom atom)
if (entries >= UINT_MAX / sizeof(*sc->stts_data))
return -1;
av_free(sc->stts_data);
sc->stts_data = av_malloc(entries * sizeof(*sc->stts_data));
if (!sc->stts_data)
return AVERROR(ENOMEM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment