Skip to content

Instantly share code, notes, and snippets.

@rcombs
Created April 13, 2015 05:32
Show Gist options
  • Save rcombs/b532bce798b560efdd8a to your computer and use it in GitHub Desktop.
Save rcombs/b532bce798b560efdd8a to your computer and use it in GitHub Desktop.
diff --git a/libavformat/http.c b/libavformat/http.c
index b2293da..bbe5de5 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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment