Commit 34d09b1e authored by bcoudurier's avatar bcoudurier

search for hdlr atom in meta, some files do not store version+flags

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17996 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5575d589
......@@ -1338,9 +1338,16 @@ static int mov_read_ilst(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
static int mov_read_meta(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
{
url_fskip(pb, 4); // version + flags
atom.size -= 4;
return mov_read_default(c, pb, atom);
while (atom.size > 8) {
uint32_t tag = get_le32(pb);
atom.size -= 4;
if (tag == MKTAG('h','d','l','r')) {
url_fseek(pb, -8, SEEK_CUR);
atom.size += 8;
return mov_read_default(c, pb, atom);
}
}
return 0;
}
static int mov_read_trkn(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
......
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