aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/hlsenc.c
diff options
context:
space:
mode:
authorKarthick J <kjeyapal@akamai.com>2017-11-24 06:41:25 +0800
committerSteven Liu <lq@chinaffmpeg.org>2017-11-24 06:41:25 +0800
commitf335efc0add8b32b0fe7223c3d897a5e41edbf64 (patch)
treebfc80f000666438ec8264c587234805a3cee4313 /libavformat/hlsenc.c
parentef8979f1992fd7753c2a236ac219a7147b7fe99a (diff)
downloadffmpeg-f335efc0add8b32b0fe7223c3d897a5e41edbf64.tar.gz
avformat/hlsenc: Minor fix in setting http options for master playlist
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r--libavformat/hlsenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 3c47ced30d..525605b8f5 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -1089,8 +1089,7 @@ static int create_master_playlist(AVFormatContext *s,
return 0;
}
- if (hls->user_agent)
- av_dict_set(&options, "user-agent", hls->user_agent, 0);
+ set_http_options(s, &options, hls);
ret = s->io_open(s, &master_pb, hls->master_m3u8_url, AVIO_FLAG_WRITE,\
&options);