1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

mov: fix stream extradata_size allocation

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Matthieu Bouron
2016-07-15 10:00:34 +02:00
committed by Martin Storsjö
parent 0b1bd1b205
commit 61cb9fac47

View File

@@ -1900,7 +1900,7 @@ static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
return AVERROR(ENOMEM);
sc->stsd_count = entries;
sc->extradata_size = av_mallocz_array(sc->stsd_count, sizeof(sc->extradata_size));
sc->extradata_size = av_mallocz_array(sc->stsd_count, sizeof(*sc->extradata_size));
if (!sc->extradata_size)
return AVERROR(ENOMEM);