[FFmpeg-cvslog] Return EOF for ICO when the end is reached
Michael Bradshaw
git at videolan.org
Thu Sep 24 23:35:37 CEST 2015
ffmpeg | branch: master | Michael Bradshaw <mjbshaw at google.com> | Fri Aug 21 07:46:16 2015 -0700| [244184217c3e560ff1f30c072edd745fa42a604c] | committer: Carl Eugen Hoyos
Return EOF for ICO when the end is reached
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=244184217c3e560ff1f30c072edd745fa42a604c
---
libavformat/icodec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/icodec.c b/libavformat/icodec.c
index 847f0ee..22e2099 100644
--- a/libavformat/icodec.c
+++ b/libavformat/icodec.c
@@ -124,7 +124,7 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
int ret;
if (ico->current_image >= ico->nb_images)
- return AVERROR(EIO);
+ return AVERROR_EOF;
image = &ico->images[ico->current_image];
More information about the ffmpeg-cvslog
mailing list