Changeset 241

Show
Ignore:
Timestamp:
01/05/07 21:24:28 (2 years ago)
Author:
allan
Message:

- fix for a determine_header_offset segfault caused when libavformat couldn't find any streams

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ff_MovieImport.c

    r230 r241  
    401401                goto bail; 
    402402         
     403        // we couldn't find any streams, bail with an error. 
     404        if(ic->nb_streams == 0) { 
     405                result = -1; //is there a more appropriate error code? 
     406                goto bail; 
     407        } 
     408         
    403409        //determine a header offset (needed by index-based import). 
    404410        result = determine_header_offset(storage);