Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-15 16:24:09 +0300
committerMichael Niedermayer <michaelni@gmx.at>2014-11-15 16:30:32 +0300
commitdeccb4d827d6bfa11eac1c3c62e2afebb8e01667 (patch)
tree8e6a25e16e584f167afb4b67108f531eb47e7575 /libavformat/http.c
parentffaf2074ebbca70bdd02819f383710b34d168e31 (diff)
avformat/http: simplify chained_options copying
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/http.c')
-rw-r--r--libavformat/http.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index f17b2f8db8..d9de05c968 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -207,8 +207,7 @@ static int http_open_cnx(URLContext *h, AVDictionary **options)
HTTPContext *s = h->priv_data;
int location_changed, attempts = 0, redirects = 0;
redo:
- if (attempts > 0)
- av_dict_copy(options, s->chained_options, 0);
+ av_dict_copy(options, s->chained_options, 0);
cur_auth_type = s->auth_state.auth_type;
cur_proxy_auth_type = s->auth_state.auth_type;
@@ -271,7 +270,6 @@ int ff_http_do_new_request(URLContext *h, const char *uri)
if (!s->location)
return AVERROR(ENOMEM);
- av_dict_copy(&options, s->chained_options, 0);
ret = http_open_cnx(h, &options);
av_dict_free(&options);
return ret;
@@ -1139,7 +1137,6 @@ static int64_t http_seek(URLContext *h, int64_t off, int whence)
s->hd = NULL;
/* if it fails, continue on old connection */
- av_dict_copy(&options, s->chained_options, 0);
if ((ret = http_open_cnx(h, &options)) < 0) {
av_dict_free(&options);
memcpy(s->buffer, old_buf, old_buf_size);