You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
Merge commit 'b446f0e98f85e2e931b476e52b319f1c49244660'
* commit 'b446f0e98f85e2e931b476e52b319f1c49244660':
mov: Do not try to parse multiple stsd for the same track
See 8b43ee4054
Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -2371,9 +2371,11 @@ static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (sc->extradata) {
|
if (sc->extradata) {
|
||||||
av_log(c->fc, AV_LOG_ERROR, "Duplicate STSD\n");
|
av_log(c->fc, AV_LOG_ERROR,
|
||||||
|
"Duplicate stsd found in this track.\n");
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 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));
|
||||||
sc->extradata_size = av_mallocz_array(entries, sizeof(*sc->extradata_size));
|
sc->extradata_size = av_mallocz_array(entries, sizeof(*sc->extradata_size));
|
||||||
|
Reference in New Issue
Block a user