Browse Source

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

Originally committed as revision 22637 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Michael Niedermayer 15 years ago
parent
commit
c51131290c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/img2.c

+ 2
- 0
libavformat/img2.c View 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);
}


Loading…
Cancel
Save