avformat/vocdec: return AVERROR_EOF when EOF is reached
authorPaul B Mahol <onemda@gmail.com>
Sat, 12 Oct 2013 20:30:12 +0000 (20:30 +0000)
committerPaul B Mahol <onemda@gmail.com>
Sun, 13 Oct 2013 09:50:38 +0000 (09:50 +0000)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/vocdec.c

index ceec81f..0b6b5a5 100644 (file)
@@ -75,7 +75,7 @@ ff_voc_get_packet(AVFormatContext *s, AVPacket *pkt, AVStream *st, int max_size)
     while (!voc->remaining_size) {
         type = avio_r8(pb);
         if (type == VOC_TYPE_EOF)
-            return AVERROR(EIO);
+            return AVERROR_EOF;
         voc->remaining_size = avio_rl24(pb);
         if (!voc->remaining_size) {
             if (!s->pb->seekable)