Browse Source

Return EOF for ICO when the end is reached

tags/n3.0
Michael Bradshaw Carl Eugen Hoyos 9 years ago
parent
commit
244184217c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/icodec.c

+ 1
- 1
libavformat/icodec.c View File

@@ -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…
Cancel
Save