Return EOF for ICO when the end is reached
This commit is contained in:
parent
5ba40c3c71
commit
244184217c
@ -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];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user