From 86732807d01afcb22ff3834bfd0b5f0d4c9e7f75 Mon Sep 17 00:00:00 2001
From: Michael Bradshaw <mjbshaw@google.com>
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 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];
 
-- 
2.5.3

