summaryrefslogtreecommitdiff
path: root/libavformat/icecast.c
diff options
context:
space:
mode:
authorJun Li <junli1026@gmail.com>2019-03-30 21:35:51 -0700
committerMichael Niedermayer <michael@niedermayer.cc>2019-03-31 23:23:52 +0200
commit4f5e660e69545bd54955002c13dcbe4dbddb1dc4 (patch)
treeb8f729820d498cb2ab617bb609a67d72fe37f4b4 /libavformat/icecast.c
parent93748a2efa66c49b2b84d163829566ebbfc2bd58 (diff)
downloadffmpeg-4f5e660e69545bd54955002c13dcbe4dbddb1dc4.tar.gz
avformat/doc, http, icecast, rtsp: Add option to disable send-expect-100
Fix ticket #7297 The current setting for send-expect-100 option is either enabled if applicable or forced enabled, no option to force disable the header. This change is to expand the option setting to provide more flexibility, which is useful for rstp case. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/icecast.c')
-rw-r--r--libavformat/icecast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/icecast.c b/libavformat/icecast.c
index c93b06b553..d2198b78ec 100644
--- a/libavformat/icecast.c
+++ b/libavformat/icecast.c
@@ -115,7 +115,7 @@ static int icecast_open(URLContext *h, const char *uri, int flags)
av_dict_set(&opt_dict, "auth_type", "basic", 0);
av_dict_set(&opt_dict, "headers", headers, 0);
av_dict_set(&opt_dict, "chunked_post", "0", 0);
- av_dict_set(&opt_dict, "send_expect_100", s->legacy_icecast ? "0" : "1", 0);
+ av_dict_set(&opt_dict, "send_expect_100", s->legacy_icecast ? "-1" : "1", 0);
if (NOT_EMPTY(s->content_type))
av_dict_set(&opt_dict, "content_type", s->content_type, 0);
else