ffmpeg | branch: master | raymondzheng <raymondzheng1...@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" <rsbul...@gmail.com> Signed-off-by: Michael Niedermayer <mich...@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; } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog