[FFmpeg-cvslog] bit: return AVERROR_EOF on eof.

Michael Niedermayer git at videolan.org
Sun Sep 25 05:45:40 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Sep 25 05:05:03 2011 +0200| [fc9d6035c3b19cc6be7f9706cbdbd5d9327bf297] | committer: Michael Niedermayer

bit: return AVERROR_EOF on eof.

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

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

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

diff --git a/libavformat/bit.c b/libavformat/bit.c
index 2cec5e9..114d23d 100644
--- a/libavformat/bit.c
+++ b/libavformat/bit.c
@@ -68,7 +68,7 @@ static int read_packet(AVFormatContext *s,
     int i, j, ret;
 
     if(url_feof(pb))
-        return AVERROR(EIO);
+        return AVERROR_EOF;
 
     sync = get_le16(pb); // sync word
     packet_size = get_le16(pb) / 8;



More information about the ffmpeg-cvslog mailing list