[FFmpeg-cvslog] ape: return AVERROR_EOF instead of AVERROR(EIO) when demuxing is finished

Justin Ruggles git at videolan.org
Tue Feb 7 02:02:59 CET 2012


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Sat Feb  4 16:31:37 2012 -0500| [66f7be3603b527153daaae0999c743eb1438c7e5] | committer: Justin Ruggles

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=66f7be3603b527153daaae0999c743eb1438c7e5
---

 libavformat/ape.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/ape.c b/libavformat/ape.c
index a6e9bf1..853fdca 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);



More information about the ffmpeg-cvslog mailing list