diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-07-30 08:21:11 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-07-30 08:21:11 +0000 |
commit | e4b8d05d476f34d1b5daba87db190cc06cea5805 (patch) | |
tree | bc5ec029ecab65f4aa17744984b97bc4b896808f /libavformat | |
parent | 07fd17823f302aeb0bf8b2455c11f09023b995d9 (diff) | |
download | ffmpeg-e4b8d05d476f34d1b5daba87db190cc06cea5805.tar.gz |
return EOF in image2 demuxer
Originally committed as revision 19538 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-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 ec32f863e8..a90381dc4b 100644 --- a/libavformat/img2.c +++ b/libavformat/img2.c @@ -260,6 +260,8 @@ static int img_read_packet(AVFormatContext *s1, AVPacket *pkt) 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); |