[FFmpeg-cvslog] r22637 - trunk/libavformat/img2.c

michael subversion
Mon Mar 22 21:18:42 CET 2010


Author: michael
Date: Mon Mar 22 21:18:42 2010
New Revision: 22637

Log:
Dont senselessly fail on rawvideo that isnt 3 files per frame.

Modified:
   trunk/libavformat/img2.c

Modified: trunk/libavformat/img2.c
==============================================================================
--- trunk/libavformat/img2.c	Mon Mar 22 17:26:29 2010	(r22636)
+++ trunk/libavformat/img2.c	Mon Mar 22 21:18:42 2010	(r22637)
@@ -269,6 +269,8 @@ static int img_read_packet(AVFormatConte
             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);
             }



More information about the ffmpeg-cvslog mailing list