ffmpeg | branch: master | Michael Bradshaw <mjbs...@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];
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to