diff options
author | Marvin Scholz <epirat07@gmail.com> | 2014-11-11 02:39:40 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-11-15 09:15:39 +0100 |
commit | 8562c1483ba647f562e4c1df68a9231274b80e6b (patch) | |
tree | 983967d4b9386608e6602ad0a1e82bd139be1591 | |
parent | 3a6bb9735053c453f806ceab1d91124648d90aca (diff) | |
download | ffmpeg-8562c1483ba647f562e4c1df68a9231274b80e6b.tar.gz |
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: Anton Khirnov <anton@khirnov.net>
-rw-r--r-- | libavformat/icecast.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/icecast.c b/libavformat/icecast.c index 1dc08ab365..5e3ce66178 100644 --- a/libavformat/icecast.c +++ b/libavformat/icecast.c @@ -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); 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); |