aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-09-25 05:05:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-25 05:05:03 +0200
commitfc9d6035c3b19cc6be7f9706cbdbd5d9327bf297 (patch)
tree352e6ec0cd982ba022cb71f12267f88acf2e7b60 /libavformat
parenta2f27818b5e87154ea98d7d452dc2785f540dc8b (diff)
downloadffmpeg-fc9d6035c3b19cc6be7f9706cbdbd5d9327bf297.tar.gz
bit: return AVERROR_EOF on eof.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/bit.c2
1 files changed, 1 insertions, 1 deletions
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;