Return EOF for ICO when the end is reached

pull/152/head^2
Michael Bradshaw 10 years ago committed by Carl Eugen Hoyos
parent 5ba40c3c71
commit 244184217c
  1. 2
      libavformat/icodec.c

@ -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