Commit 66f7be36 authored by Justin Ruggles's avatar Justin Ruggles

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

parent 1bc035bc
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment