mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
mov: fix stream extradata_size allocation
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
0b1bd1b205
commit
61cb9fac47
@ -1900,7 +1900,7 @@ static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
|||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
sc->stsd_count = entries;
|
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)
|
if (!sc->extradata_size)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user