mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
avformat/mov: Ignore duplicate ftyp
Fixes: switch_1080p_720p.mp4 Found-by: Dale Curtis <dalecurtis@chromium.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 4cdf2c7f768015c74078544d153f243b6d9b9ac5) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
8f209d2c90
commit
7207d398ff
@ -1130,8 +1130,12 @@ static int mov_read_ftyp(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
int ret = ffio_read_size(pb, type, 4);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
if (c->fc->nb_streams)
|
||||
return AVERROR_INVALIDDATA;
|
||||
if (c->fc->nb_streams) {
|
||||
if (c->fc->strict_std_compliance >= FF_COMPLIANCE_STRICT)
|
||||
return AVERROR_INVALIDDATA;
|
||||
av_log(c->fc, AV_LOG_DEBUG, "Ignoring duplicate FTYP\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (strcmp(type, "qt "))
|
||||
c->isom = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user