# HG changeset patch # User bcoudurier # Date 1237161293 0 # Node ID 13ffc02ce5f86c3de0197165ff7898b049b8f73c # Parent a2390c6a35e6b60840bd19c14c2eb35bb39ced8a search for hdlr atom in meta, some files do not store version+flags diff -r a2390c6a35e6 -r 13ffc02ce5f8 mov.c --- a/mov.c Sun Mar 15 20:14:25 2009 +0000 +++ b/mov.c Sun Mar 15 23:54:53 2009 +0000 @@ -1338,9 +1338,16 @@ 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)