changeset 5867:b5d74258cd23 libavformat

Dont senselessly fail on rawvideo that isnt 3 files per frame.
author michael
date Mon, 22 Mar 2010 20:18:42 +0000
parents 38b67ae3f07d
children 92daebc423f4
files img2.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/img2.c	Mon Mar 22 16:26:29 2010 +0000
+++ b/img2.c	Mon Mar 22 20:18:42 2010 +0000
@@ -269,6 +269,8 @@
             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);
             }