[FFmpeg-cvslog] Fix return value on EOF in mpc v8 demuxer.

Laurent Aimar git at videolan.org
Sat Oct 1 21:38:50 CEST 2011


ffmpeg | branch: release/0.8 | Laurent Aimar <fenrir at videolan.org> | Sun Sep 25 13:43:37 2011 +0200| [521dbccc1137fdf3c7ebdd75afe64a4d2567ba22] | committer: Michael Niedermayer

Fix return value on EOF in mpc v8 demuxer.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 7ec5ea437fc88ca58d7ac3cd12dfa2f0fbd4011f)

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

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

diff --git a/libavformat/mpc8.c b/libavformat/mpc8.c
index b18726c..db23781 100644
--- a/libavformat/mpc8.c
+++ b/libavformat/mpc8.c
@@ -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)



More information about the ffmpeg-cvslog mailing list