]> git.sesse.net Git - ffmpeg/commitdiff
avformat/hls: don't propagate deprecated "user-agent" AVOption
authorwm4 <nfxjfg@googlemail.com>
Sat, 28 Apr 2018 18:36:49 +0000 (20:36 +0200)
committerwm4 <nfxjfg@googlemail.com>
Fri, 4 May 2018 12:16:38 +0000 (14:16 +0200)
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.

libavformat/hls.c

index ffec1248189b504994113f571b0f0618c9a2bebe..4ee4be769d38ab49a5cbe29c5d8a8892045e44c3 100644 (file)
@@ -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;