Mercurial > libavformat.hg
changeset 5118:e88e7ac64898 libavformat
return EOF in image2 demuxer
author | bcoudurier |
---|---|
date | Thu, 30 Jul 2009 08:21:11 +0000 |
parents | 0a1a6377ec5d |
children | bb9cdd9ad9de |
files | img2.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/img2.c Wed Jul 29 17:12:47 2009 +0000 +++ b/img2.c Thu Jul 30 08:21:11 2009 +0000 @@ -260,6 +260,8 @@ 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);