Commit fcb4175f authored by bcoudurier's avatar bcoudurier

return EOF in image2 demuxer

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19538 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 160e1ee4
...@@ -260,6 +260,8 @@ static int img_read_packet(AVFormatContext *s1, AVPacket *pkt) ...@@ -260,6 +260,8 @@ static int img_read_packet(AVFormatContext *s1, AVPacket *pkt)
if (s1->loop_input && s->img_number > s->img_last) { if (s1->loop_input && s->img_number > s->img_last) {
s->img_number = s->img_first; s->img_number = s->img_first;
} }
if (s->img_number > s->img_last)
return AVERROR_EOF;
if (av_get_frame_filename(filename, sizeof(filename), if (av_get_frame_filename(filename, sizeof(filename),
s->path, s->img_number)<0 && s->img_number > 1) s->path, s->img_number)<0 && s->img_number > 1)
return AVERROR(EIO); return AVERROR(EIO);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment