Ticket #123: AviImporter 2.patch

File AviImporter 2.patch, 1.1 KB (added by Ritsuka, 3 years ago)
  • ff_MovieImport.c

     
    325325 
    326326                       OSType fourcc = get_avi_strf_fourcc(&byteContext); 
    327327 
    328                        if (codec_get_bmp_id(BSWAP(fourcc)) == CODEC_ID_MJPEG ||  
    329                                codec_get_bmp_id(BSWAP(fourcc)) == CODEC_ID_DVVIDEO) 
     328                       enum CodecID id = codec_get_id(codec_bmp_tags,BSWAP(fourcc)); 
     329 
     330                       if (id == CODEC_ID_MJPEG ||  
     331                               id == CODEC_ID_DVVIDEO || 
     332                               id == CODEC_ID_NONE) 
    330333                               *valid = 0; 
    331334 
    332335                       url_fclose(&byteContext); 
     
    404407 
    405408       /* Get the Stream Infos if not already read */ 
    406409       result = av_find_stream_info(ic); 
    407        if(result < 0) 
    408                goto bail; 
     410       //if(result < 0) 
     411       //      goto bail; 
    409412 
    410413       // we couldn't find any streams, bail with an error. 
    411414       if(ic->nb_streams == 0) {