mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 10:52:20 +00: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:
commit
d99c3af707
@ -2371,9 +2371,11 @@ static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
/* Prepare space for hosting multiple extradata. */
|
||||
sc->extradata = av_mallocz_array(entries, sizeof(*sc->extradata));
|
||||
sc->extradata_size = av_mallocz_array(entries, sizeof(*sc->extradata_size));
|
||||
|
Loading…
Reference in New Issue
Block a user