ape: return AVERROR_EOF instead of AVERROR(EIO) when demuxing is finished

This commit is contained in:
Justin Ruggles 2012-02-04 16:31:37 -05:00
parent 1bc035bc03
commit 66f7be3603
1 changed files with 2 additions and 2 deletions

View File

@ -357,9 +357,9 @@ static int ape_read_packet(AVFormatContext * s, AVPacket * pkt)
uint32_t extra_size = 8;
if (s->pb->eof_reached)
return AVERROR(EIO);
return AVERROR_EOF;
if (ape->currentframe > ape->totalframes)
return AVERROR(EIO);
return AVERROR_EOF;
if (avio_seek(s->pb, ape->frames[ape->currentframe].pos, SEEK_SET) < 0)
return AVERROR(EIO);