mpc8: Fix return value on EOF
authorLaurent Aimar <fenrir@videolan.org>
Sun, 25 Sep 2011 20:06:19 +0000 (20:06 +0000)
committerJanne Grunau <janne-libav@jannau.net>
Fri, 7 Oct 2011 14:25:30 +0000 (16:25 +0200)
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
libavformat/mpc8.c

index d7a7d6a..2634ee3 100644 (file)
@@ -264,7 +264,7 @@ static int mpc8_read_packet(AVFormatContext *s, AVPacket *pkt)
             return AVERROR(EIO);
         mpc8_handle_chunk(s, tag, pos, size);
     }
-    return 0;
+    return AVERROR_EOF;
 }
 
 static int mpc8_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)