From ccc10acb5b941973acab49d64459bb110cc0a529 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 28 Jul 2012 12:23:04 +0200 Subject: wv: return AVERROR_EOF on EOF, not EIO. --- libavformat/wv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/wv.c') diff --git a/libavformat/wv.c b/libavformat/wv.c index 49ca486a93..0b6a406654 100644 --- a/libavformat/wv.c +++ b/libavformat/wv.c @@ -254,7 +254,7 @@ static int wv_read_packet(AVFormatContext *s, uint32_t block_samples; if (s->pb->eof_reached) - return AVERROR(EIO); + return AVERROR_EOF; if(wc->block_parsed){ if(wv_read_block_header(s, s->pb, 0) < 0) return -1; -- cgit v1.2.3