1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

Originally committed as revision 22637 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2010-03-22 20:18:42 +00:00
parent 887af2aa12
commit c51131290c

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);
}