aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2013-06-17 17:03:15 +0200
committerClément Bœsch <ubitux@gmail.com>2013-06-17 17:06:11 +0200
commitde12b454f21675e18127cd8b549c53deec7cd048 (patch)
treeffb2f38c586f8a77e16d875107c28c76f88dbc11 /libavformat
parent96b33ddbd00121db51dd573ae80e83955918773d (diff)
downloadffmpeg-de12b454f21675e18127cd8b549c53deec7cd048.tar.gz
lavf/http: remove Mozilla/5.0 from user agent.
It is notably known to break playback on http streaming servers who use the user agent to guess if it's a browser (to display a summary) or a player (to stream the audio data). This reverts 1fabd95. Fixes Ticket #2663.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index e75ad9e989..91f8d1fe97 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -70,7 +70,7 @@ typedef struct {
#define OFFSET(x) offsetof(HTTPContext, x)
#define D AV_OPT_FLAG_DECODING_PARAM
#define E AV_OPT_FLAG_ENCODING_PARAM
-#define DEFAULT_USER_AGENT "Mozilla/5.0 Lavf/" AV_STRINGIFY(LIBAVFORMAT_VERSION)
+#define DEFAULT_USER_AGENT "Lavf/" AV_STRINGIFY(LIBAVFORMAT_VERSION)
static const AVOption options[] = {
{"seekable", "control seekability of connection", OFFSET(seekable), AV_OPT_TYPE_INT, {.i64 = -1}, -1, 1, D },
{"chunked_post", "use chunked transfer-encoding for posts", OFFSET(chunked_post), AV_OPT_TYPE_INT, {.i64 = 1}, 0, 1, E },