]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/icecast.c
mov: Fix little endian audio detection
[ffmpeg] / libavformat / icecast.c
index b671d8ced9c797f97fe75ed6eb6776fc23d21b1d..5e3ce6617802bc497da015d3292fb5f8ee0561d8 100644 (file)
@@ -126,8 +126,12 @@ static int icecast_open(URLContext *h, const char *uri, int flags)
     av_dict_set(&opt_dict, "method", s->legacy_icecast ? "SOURCE" : "PUT", 0);
     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);
     if (NOT_EMPTY(s->content_type))
         av_dict_set(&opt_dict, "content_type", s->content_type, 0);
+    else
+        av_dict_set(&opt_dict, "content_type", "audio/mpeg", 0);
     if (NOT_EMPTY(s->user_agent))
         av_dict_set(&opt_dict, "user_agent", s->user_agent, 0);