diff options
author | Marvin Scholz <epirat07@gmail.com> | 2014-11-11 01:51:23 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-11 14:49:08 +0100 |
commit | 5e08b54f47e8168e1f8203d9b5d0d1fba3c9f822 (patch) | |
tree | 30aa0244bd8e9107a499ba09bdf0114ce0dd65f3 /libavformat/icecast.c | |
parent | 6f2068e626ee75ea4231ba0061885686866e6b66 (diff) | |
download | ffmpeg-5e08b54f47e8168e1f8203d9b5d0d1fba3c9f822.tar.gz |
Icecast: always send a content-type
use a default (audio/mpeg for historical reason) if none. Required since Icecast 2.4.1
Not using AVOption default because this breaks content-type warnings (needs to
detect if no type was set by the user)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/icecast.c')
-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 7d60e44a4a..7472416bfc 100644 --- a/libavformat/icecast.c +++ b/libavformat/icecast.c @@ -117,6 +117,8 @@ static int icecast_open(URLContext *h, const char *uri, int flags) av_dict_set(&opt_dict, "chunked_post", "0", 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); |