]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/http.c
avformat/hlsenc: donnot show duplicate segment warning at byterange mode
[ffmpeg] / libavformat / http.c
index d06103ab6d8a8f555d5726026cc301ab4e595d43..30890bb7aa03adf145e70f61fb7520bdb28221c2 100644 (file)
@@ -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;
         }