diff --git a/libavformat/http.c b/libavformat/http.c index b2293da81f..bbe5de5cf1 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -917,6 +917,9 @@ static int http_connect(URLContext *h, const char *path, const char *local_path, if (err < 0) goto done; + if (*new_location) + s->off = off; + err = (off == s->off) ? 0 : -1; done: av_freep(&authstr);