Browse code

Fix return value on EOF in mpc v8 demuxer.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Laurent Aimar authored on 2011/09/25 20:43:37
Showing 1 changed files
... ...
@@ -264,7 +264,7 @@ static int mpc8_read_packet(AVFormatContext *s, AVPacket *pkt)
264 264
             return AVERROR(EIO);
265 265
         mpc8_handle_chunk(s, tag, pos, size);
266 266
     }
267
-    return 0;
267
+    return AVERROR_EOF;
268 268
 }
269 269
 
270 270
 static int mpc8_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)