Commit f73a3aac authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavf/mov: Only search for invalid moov in free if compliance < STRICT.

parent 60178e78
...@@ -4884,6 +4884,7 @@ static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom) ...@@ -4884,6 +4884,7 @@ static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom)
a.type = avio_rl32(pb); a.type = avio_rl32(pb);
if (a.type == MKTAG('f','r','e','e') && if (a.type == MKTAG('f','r','e','e') &&
a.size >= 8 && a.size >= 8 &&
c->fc->strict_std_compliance < FF_COMPLIANCE_STRICT &&
c->moov_retry) { c->moov_retry) {
uint8_t buf[8]; uint8_t buf[8];
uint32_t *type = (uint32_t *)buf + 1; uint32_t *type = (uint32_t *)buf + 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment