summaryrefslogtreecommitdiff
path: root/libavformat/icodec.c
diff options
context:
space:
mode:
authorMichael Bradshaw <mjbshaw@google.com>2015-08-21 07:46:16 -0700
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2015-09-24 23:35:10 +0200
commit244184217c3e560ff1f30c072edd745fa42a604c (patch)
tree6259423a0f8cdf54079779d8c5478d3ccb5e8e8a /libavformat/icodec.c
parent5ba40c3c712fdd44b6eecd5499799fe96225a01b (diff)
Return EOF for ICO when the end is reached
Diffstat (limited to 'libavformat/icodec.c')
-rw-r--r--libavformat/icodec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/icodec.c b/libavformat/icodec.c
index 847f0eea2f..22e209903b 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];