aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-07-28 12:23:04 +0200
committerAnton Khirnov <anton@khirnov.net>2012-07-28 14:37:12 +0200
commitccc10acb5b941973acab49d64459bb110cc0a529 (patch)
tree8cf58fd3b7e1e2bca8eb61489c08e202383cb0cc /libavformat
parentf73e3938ac70524826664855210446c3739c4a5e (diff)
downloadffmpeg-ccc10acb5b941973acab49d64459bb110cc0a529.tar.gz
wv: return AVERROR_EOF on EOF, not EIO.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/wv.c2
1 files changed, 1 insertions, 1 deletions
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;