From f05ec1c7389719f151b9d2053f0050abff7f7252 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 27 May 2013 22:48:04 +0200 Subject: options: add allow-mimetype suboption for demux_lavf This can control whether demux_lavf should use the HTTP mime type to determine the format, instead of probing the data with the libavformat API. Do this to allow easier debugging in case the mimetype is incorrect. (This is done only for AAC streams right now.) --- core/defaultopts.c | 3 +++ core/options.h | 1 + 2 files changed, 4 insertions(+) (limited to 'core') diff --git a/core/defaultopts.c b/core/defaultopts.c index 1efb8a1c97..b55dea99f8 100644 --- a/core/defaultopts.c +++ b/core/defaultopts.c @@ -100,6 +100,9 @@ void set_default_mplayer_options(struct MPOpts *opts) .ac3drc = 1., .downmix = 1, }, + .lavfdopts = { + .allow_mimetype = 1, + }, .input = { .key_fifo_size = 7, .ar_delay = 200, diff --git a/core/options.h b/core/options.h index 36a930a132..b2e38ec56d 100644 --- a/core/options.h +++ b/core/options.h @@ -223,6 +223,7 @@ typedef struct MPOpts { int probesize; int probescore; int analyzeduration; + int allow_mimetype; char *format; char *cryptokey; char *avopt; -- cgit v1.2.3