diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-14 10:59:37 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-14 10:59:37 +0200 |
commit | 3f4fb49d1b14a849cbf5ebcd00bb0dba665b72a8 (patch) | |
tree | ce88e10c7adbdb3327e1a5bddce4155f19ffab50 /libavformat/avio.c | |
parent | d06dda65b499458761d23d9580fdcaa451ba96f5 (diff) | |
parent | 26589aa81028f42c763c5581a1486a271799890b (diff) | |
download | ffmpeg-3f4fb49d1b14a849cbf5ebcd00bb0dba665b72a8.tar.gz |
Merge commit '26589aa81028f42c763c5581a1486a271799890b' into release/0.10
* commit '26589aa81028f42c763c5581a1486a271799890b':
westwood_vqa: do not free extradata on error in read_header
vqavideo: check the version
rmdec: Use the AVIOContext given as parameter in rm_read_metadata()
avio: Handle AVERROR_EOF in the same way as the return value 0
Conflicts:
libavcodec/vqavideo.c
libavformat/westwood_vqa.c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r-- | libavformat/avio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c index 480dc98205..d9d417c5a9 100644 --- a/libavformat/avio.c +++ b/libavformat/avio.c @@ -359,7 +359,7 @@ static inline int retry_transfer_wrapper(URLContext *h, unsigned char *buf, int else usleep(1000); } else if (ret < 1) - return ret < 0 ? ret : len; + return (ret < 0 && ret != AVERROR_EOF) ? ret : len; if (ret) fast_retries = FFMAX(fast_retries, 2); len += ret; |