You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
Merge commit 'defe307fb22beca60a632e976ab97e5edd4aee25'
* commit 'defe307fb22beca60a632e976ab97e5edd4aee25': mov: move stsd finalization to an appropriate place mov: Do not set stsd_count if mov_read_stsd() fails mov: log and return early on non-positive stsd entry counts See8b43ee4054
656feb641d
Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -2548,15 +2548,18 @@ static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
|||||||
|
|
||||||
/* Prepare space for hosting multiple extradata. */
|
/* Prepare space for hosting multiple extradata. */
|
||||||
sc->extradata = av_mallocz_array(entries, sizeof(*sc->extradata));
|
sc->extradata = av_mallocz_array(entries, sizeof(*sc->extradata));
|
||||||
|
if (!sc->extradata)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
sc->extradata_size = av_mallocz_array(entries, sizeof(*sc->extradata_size));
|
sc->extradata_size = av_mallocz_array(entries, sizeof(*sc->extradata_size));
|
||||||
if (!sc->extradata_size || !sc->extradata) {
|
if (!sc->extradata_size) {
|
||||||
ret = AVERROR(ENOMEM);
|
ret = AVERROR(ENOMEM);
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = ff_mov_read_stsd_entries(c, pb, entries);
|
ret = ff_mov_read_stsd_entries(c, pb, entries);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
goto fail;
|
||||||
|
|
||||||
sc->stsd_count = entries;
|
sc->stsd_count = entries;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user