summaryrefslogtreecommitdiff
path: root/libavformat/ape.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-02-04 16:31:37 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-02-06 13:09:11 -0500
commit66f7be3603b527153daaae0999c743eb1438c7e5 (patch)
tree46470c693d7483ac940b165a0e1d776788cbedf1 /libavformat/ape.c
parent1bc035bc03542c0b2215effc0e53c5c9d2e786ac (diff)
ape: return AVERROR_EOF instead of AVERROR(EIO) when demuxing is finished
Diffstat (limited to 'libavformat/ape.c')
-rw-r--r--libavformat/ape.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/ape.c b/libavformat/ape.c
index a6e9bf1d79..853fdcac7e 100644
--- a/libavformat/ape.c
+++ b/libavformat/ape.c
@@ -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);