From fc9d6035c3b19cc6be7f9706cbdbd5d9327bf297 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 25 Sep 2011 05:05:03 +0200 Subject: [PATCH] bit: return AVERROR_EOF on eof. Signed-off-by: Michael Niedermayer --- libavformat/bit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/bit.c b/libavformat/bit.c index 2cec5e95d0..114d23dfc4 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;