projects
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
avformat/avio: Fix EOF handiling of ffurl_read_complete()
[ffmpeg.git]
/
libavformat
/
avio.c
diff --git
a/libavformat/avio.c
b/libavformat/avio.c
index f6af0cb9e6d74170162402d69b5391bfb5e93b7a..73b2a2980102642b4cae846b112a4c5debff0268 100644
(file)
--- a/
libavformat/avio.c
+++ b/
libavformat/avio.c
@@
-290,7
+290,7
@@
static inline int retry_transfer_wrapper(URLContext *h, unsigned char *buf, int
av_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;