[FFmpeg-cvslog] libavformat/http: return EIO when ffurl_read return 0, but s->off < target_end
raymondzheng
git at videolan.org
Fri Jun 9 14:28:58 EEST 2017
ffmpeg | branch: master | raymondzheng <raymondzheng1412 at gmail.com> | Thu May 18 14:35:31 2017 +0800| [9f20cc5c84589afe96499fd7259eb821e31217a0] | committer: Michael Niedermayer
libavformat/http: return EIO when ffurl_read return 0, but s->off < target_end
Approved-by: "Ronald S. Bultje" <rsbultje at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9f20cc5c84589afe96499fd7259eb821e31217a0
---
libavformat/http.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/http.c b/libavformat/http.c
index d06103ab6d..30890bb7aa 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -1326,7 +1326,7 @@ static int http_buf_read(URLContext *h, uint8_t *buf, int size)
}
if (len > 0) {
s->off += len;
- if (s->chunksize > 0) {
+ if (s->chunksize > 0 && s->chunksize != UINT64_MAX) {
av_assert0(s->chunksize >= len);
s->chunksize -= len;
}
More information about the ffmpeg-cvslog
mailing list