avio: Handle AVERROR_EOF in the same way as the return value 0
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 24 Jun 2013 12:23:44 +0000 (14:23 +0200)
committerMartin Storsjö <martin@martin.st>
Sun, 7 Jul 2013 10:30:01 +0000 (13:30 +0300)
commit5d876be87a115b93dd2e644049e3ada2cfb5ccb7
tree3535f2f7cd4111c8e5a20c53bc83d9800b0a0921
parentf5e646a00ac21e500dae4bcceded790a0fbc5246
avio: Handle AVERROR_EOF in the same way as the return value 0

This makes sure the ffurl_read_complete function actually
returns the number of bytes read, as the documentation of the
function says, even if the underlying protocol uses AVERROR_EOF
instead of 0.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/avio.c