aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorwm4 <nfxjfg@googlemail.com>2018-04-28 20:36:49 +0200
committerwm4 <nfxjfg@googlemail.com>2018-05-04 14:16:38 +0200
commit1d642ebfdb31b7c55ba02500a76f3febf04ce434 (patch)
tree24dd5283724274c8b534227d09b91574a0444d61 /libavformat
parent022d4a2114d2586d4807f5810160f0f565ab80d7 (diff)
downloadffmpeg-1d642ebfdb31b7c55ba02500a76f3febf04ce434.tar.gz
avformat/hls: don't propagate deprecated "user-agent" AVOption
This code will print a warning if any user agent is set - even if the API user used the proper non-deprecated "user_agent" option. This change should not even break anything, because even if the user sets the deprecated "user-agent" option, http.c copies it to the "user_agent" option anyway.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/hls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c
index ffec124818..4ee4be769d 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -1593,7 +1593,7 @@ static int save_avio_options(AVFormatContext *s)
{
HLSContext *c = s->priv_data;
static const char * const opts[] = {
- "headers", "http_proxy", "user_agent", "user-agent", "cookies", "referer", "rw_timeout", NULL };
+ "headers", "http_proxy", "user_agent", "cookies", "referer", "rw_timeout", NULL };
const char * const * opt = opts;
uint8_t *buf;
int ret = 0;