X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fhttp.c;h=751a2029cd4125ed8716e75f51a53e767966e11d;hb=7cbe02575868e7d25acf3d319ece664702700f0a;hp=95ba456ceaab8e18018358a3b4d097d6d2c5379d;hpb=3dd44e507536e85d81e4f10d1a9bf8fc6082d9ab;p=ffmpeg diff --git a/libavformat/http.c b/libavformat/http.c index 95ba456ceaa..751a2029cd4 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -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;