X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fhttp.c;h=30890bb7aa03adf145e70f61fb7520bdb28221c2;hb=3996ae930256f5c387f2d2e46908b7c433efc588;hp=d06103ab6d8a8f555d5726026cc301ab4e595d43;hpb=c3e08544100cdd7045f710bfcea33e07d9fcd25b;p=ffmpeg diff --git a/libavformat/http.c b/libavformat/http.c index d06103ab6d8..30890bb7aa0 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; }