From 244184217c3e560ff1f30c072edd745fa42a604c Mon Sep 17 00:00:00 2001 From: Michael Bradshaw Date: Fri, 21 Aug 2015 07:46:16 -0700 Subject: [PATCH] Return EOF for ICO when the end is reached --- libavformat/icodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];