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];