Dont senselessly fail on rawvideo that isnt 3 files per frame.
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 22 Mar 2010 20:18:42 +0000 (20:18 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 22 Mar 2010 20:18:42 +0000 (20:18 +0000)
Originally committed as revision 22637 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/img2.c

index 0610ae1..7831673 100644 (file)
@@ -269,6 +269,8 @@ static int img_read_packet(AVFormatContext *s1, AVPacket *pkt)
             return AVERROR(EIO);
         for(i=0; i<3; i++){
             if (url_fopen(&f[i], filename, URL_RDONLY) < 0) {
+                if(i==1)
+                    break;
                 av_log(s1, AV_LOG_ERROR, "Could not open file : %s\n",filename);
                 return AVERROR(EIO);
             }