Changeset 742

Show
Ignore:
Timestamp:
11/17/07 16:16:12 (8 months ago)
Author:
gbooker
Message:

Only look at the fourcc in the strh if it is a type 1 avi file, otherwise use the strf (which seems to be more accurate).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/perian-1.1/ff_MovieImport.c

    r708 r742  
    322322                } else if (tag == 'strh'){ 
    323323                        // 4-byte offset to the fourcc 
    324                         url_fskip(pb, 4); 
    325                         return get_be32(pb); 
     324                        OSType tag1 = get_be32(pb); 
     325                        if(tag1 == 'iavs' || tag1 == 'ivas') 
     326                                return get_be32(pb); 
     327                        else 
     328                                url_fskip(pb, size + (size & 1) - 4); 
    326329                } else 
    327330                        url_fskip(pb, size + (size & 1));