diff --git a/libavformat/http.c b/libavformat/http.c index adbf352688..0ca20d06fd 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -512,6 +512,7 @@ redo: return 0; fail: + s->off = off; if (s->hd) ffurl_closep(&s->hd); if (ret < 0)