From c51131290cae3d5f58427db7d7fbf97567722f98 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Mon, 22 Mar 2010 20:18:42 +0000
Subject: [PATCH] Dont senselessly fail on rawvideo that isnt 3 files per
 frame.

Originally committed as revision 22637 to svn://svn.ffmpeg.org/ffmpeg/trunk
---
 libavformat/img2.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/img2.c b/libavformat/img2.c
index 0610ae1ee5e..783167317c5 100644
--- a/libavformat/img2.c
+++ b/libavformat/img2.c
@@ -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);
             }
-- 
GitLab