ape: return AVERROR_EOF instead of AVERROR(EIO) when demuxing is finished
This commit is contained in:
parent
1bc035bc03
commit
66f7be3603
@ -357,9 +357,9 @@ static int ape_read_packet(AVFormatContext * s, AVPacket * pkt)
|
|||||||
uint32_t extra_size = 8;
|
uint32_t extra_size = 8;
|
||||||
|
|
||||||
if (s->pb->eof_reached)
|
if (s->pb->eof_reached)
|
||||||
return AVERROR(EIO);
|
return AVERROR_EOF;
|
||||||
if (ape->currentframe > ape->totalframes)
|
if (ape->currentframe > ape->totalframes)
|
||||||
return AVERROR(EIO);
|
return AVERROR_EOF;
|
||||||
|
|
||||||
if (avio_seek(s->pb, ape->frames[ape->currentframe].pos, SEEK_SET) < 0)
|
if (avio_seek(s->pb, ape->frames[ape->currentframe].pos, SEEK_SET) < 0)
|
||||||
return AVERROR(EIO);
|
return AVERROR(EIO);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user