mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-08 02:06:02 +08:00
Return EOF for ICO when the end is reached
This commit is contained in:

committed by
Carl Eugen Hoyos

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];
|
||||
|
||||
|
Reference in New Issue
Block a user