[FFmpeg-cvslog] wv: return AVERROR_EOF on EOF, not EIO.
Anton Khirnov
git at videolan.org
Sun Jul 29 02:26:23 CEST 2012
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Jul 28 12:23:04 2012 +0200| [ccc10acb5b941973acab49d64459bb110cc0a529] | committer: Anton Khirnov
wv: return AVERROR_EOF on EOF, not EIO.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ccc10acb5b941973acab49d64459bb110cc0a529
---
libavformat/wv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/wv.c b/libavformat/wv.c
index 49ca486..0b6a406 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;
More information about the ffmpeg-cvslog
mailing list