aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/icecast.c
diff options
context:
space:
mode:
authorMark McGough <madmanmarkau@gmail.com>2014-10-12 18:24:07 +0800
committerLuca Barbato <lu_zero@gentoo.org>2014-10-12 19:54:07 +0200
commit76c70e33d2244a688832f03b53862eb5d9ad3b01 (patch)
treebe65d0f4daef1d086c687b04fad2a7771892f005 /libavformat/icecast.c
parente44ee1eb8db7393e9d43207c2e1812720e292e6d (diff)
downloadffmpeg-76c70e33d2244a688832f03b53862eb5d9ad3b01.tar.gz
icecast: Do not use chunked post
Icecast uses HTTP 1.0 while Libav uses HTTP 1.1 and enables by default chunked post. Icecast actually forwards the HTTP chunk headers to the listener as part of the media stream (without the chunk encoding HTTP headers) causing the players to lose sync. Disabling the option is enough to feed icecast properly. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/icecast.c')
-rw-r--r--libavformat/icecast.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/icecast.c b/libavformat/icecast.c
index b671d8ced9..155396fcc4 100644
--- a/libavformat/icecast.c
+++ b/libavformat/icecast.c
@@ -126,6 +126,7 @@ 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);
if (NOT_EMPTY(s->content_type))
av_dict_set(&opt_dict, "content_type", s->content_type, 0);
if (NOT_EMPTY(s->user_agent))