Commit 24418421 authored by Michael Bradshaw's avatar Michael Bradshaw Committed by Carl Eugen Hoyos

Return EOF for ICO when the end is reached

parent 5ba40c3c
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment