[FFmpeg-devel,v1,2/3] avformat/icecast: Modify send-100-continue setting

Submitted by Jun Li on March 19, 2019, 9:58 p.m.

Details

Message ID 20190319215839.32193-3-junli1026@gmail.com
State New
Headers show

Commit Message

Jun Li March 19, 2019, 9:58 p.m.
Modify send-100-continue option to -1 because the default behavior
is changed in http.c
---
 libavformat/icecast.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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