]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/http.c
Fixed size given to init_get_bits().
[ffmpeg] / libavformat / http.c
index 95ba456ceaab8e18018358a3b4d097d6d2c5379d..751a2029cd4125ed8716e75f51a53e767966e11d 100644 (file)
@@ -265,6 +265,8 @@ static int process_line(URLContext *h, char *line, int line_count,
                     s->filesize = atoll(slash+1);
             }
             h->is_streamed = 0; /* we _can_ in fact seek */
+        } else if (!strcasecmp(tag, "Accept-Ranges") && !strncmp(p, "bytes", 5)) {
+            h->is_streamed = 0;
         } else if (!strcasecmp (tag, "Transfer-Encoding") && !strncasecmp(p, "chunked", 7)) {
             s->filesize = -1;
             s->chunksize = 0;