[FFmpeg-cvslog] avformat/hls: don't propagate deprecated "user-agent" AVOption

wm4 git at videolan.org
Fri May 4 15:36:05 EEST 2018


ffmpeg | branch: master | wm4 <nfxjfg at googlemail.com> | Sat Apr 28 20:36:49 2018 +0200| [1d642ebfdb31b7c55ba02500a76f3febf04ce434] | committer: wm4

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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1d642ebfdb31b7c55ba02500a76f3febf04ce434
---

 libavformat/hls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list