Commit 8562c148 authored by Marvin Scholz's avatar Marvin Scholz Committed by Anton Khirnov

Icecast: Send content-type in all cases

This is needed because Icecast since version 2.4.1 doesn't default
to audio/mpeg anymore. AVOption default not used here, since a later
check if -content_type is set is performed and would break.
Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent 3a6bb973
...@@ -130,6 +130,8 @@ static int icecast_open(URLContext *h, const char *uri, int flags) ...@@ -130,6 +130,8 @@ static int icecast_open(URLContext *h, const char *uri, int flags)
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 ? "0" : "1", 0);
if (NOT_EMPTY(s->content_type)) if (NOT_EMPTY(s->content_type))
av_dict_set(&opt_dict, "content_type", s->content_type, 0); 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)) if (NOT_EMPTY(s->user_agent))
av_dict_set(&opt_dict, "user_agent", s->user_agent, 0); av_dict_set(&opt_dict, "user_agent", s->user_agent, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment