diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-03-22 20:18:42 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-03-22 20:18:42 +0000 |
commit | c51131290cae3d5f58427db7d7fbf97567722f98 (patch) | |
tree | 76433664e866d1c878175f1141296f0858372ecd | |
parent | 887af2aa125dd345a51eb5470c5c013327a214d6 (diff) | |
download | ffmpeg-c51131290cae3d5f58427db7d7fbf97567722f98.tar.gz |
Dont senselessly fail on rawvideo that isnt 3 files per frame.
Originally committed as revision 22637 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/img2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/img2.c b/libavformat/img2.c index 0610ae1ee5..783167317c 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); } |