mirror of https://git.ffmpeg.org/ffmpeg.git
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;
|
int ret;
|
||||||
|
|
||||||
if (ico->current_image >= ico->nb_images)
|
if (ico->current_image >= ico->nb_images)
|
||||||
return AVERROR(EIO);
|
return AVERROR_EOF;
|
||||||
|
|
||||||
image = &ico->images[ico->current_image];
|
image = &ico->images[ico->current_image];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue