Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Scholz <epirat07@gmail.com>2014-11-11 03:51:23 +0300
committerMichael Niedermayer <michaelni@gmx.at>2014-11-11 16:49:08 +0300
commit5e08b54f47e8168e1f8203d9b5d0d1fba3c9f822 (patch)
tree30aa0244bd8e9107a499ba09bdf0114ce0dd65f3 /libavformat/icecast.c
parent6f2068e626ee75ea4231ba0061885686866e6b66 (diff)
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.c2
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);