[FFmpeg-cvslog] r19538 - trunk/libavformat/img2.c
bcoudurier
subversion
Thu Jul 30 10:21:11 CEST 2009
Author: bcoudurier
Date: Thu Jul 30 10:21:11 2009
New Revision: 19538
Log:
return EOF in image2 demuxer
Modified:
trunk/libavformat/img2.c
Modified: trunk/libavformat/img2.c
==============================================================================
--- trunk/libavformat/img2.c Thu Jul 30 09:33:16 2009 (r19537)
+++ trunk/libavformat/img2.c Thu Jul 30 10:21:11 2009 (r19538)
@@ -260,6 +260,8 @@ static int img_read_packet(AVFormatConte
if (s1->loop_input && s->img_number > s->img_last) {
s->img_number = s->img_first;
}
+ if (s->img_number > s->img_last)
+ return AVERROR_EOF;
if (av_get_frame_filename(filename, sizeof(filename),
s->path, s->img_number)<0 && s->img_number > 1)
return AVERROR(EIO);
More information about the ffmpeg-cvslog
mailing list