summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWessel Dankers <wsl@fruit.je>2013-03-03 18:48:20 +0100
committerwm4 <wm4@nowhere>2013-03-04 21:18:20 +0100
commit879ebe06554fdd5ed968c3b7ba35488fe0e6017b (patch)
treee25e89b5055119f29854ac19d54c1871002e82a5 /core
parent7bab84050f168685b42fcee494f07f5ae4cf4d78 (diff)
downloadmpv-879ebe06554fdd5ed968c3b7ba35488fe0e6017b.tar.bz2
mpv-879ebe06554fdd5ed968c3b7ba35488fe0e6017b.tar.xz
Add a --dtshd option
The spdif decoder was hardcoded to assume that the spdif output is capable of accepting high (>1.5Mbps) bitrates. While this is true for modern HDMI spdif interfaces, the original coax/toslink system cannot deal with this and will fail to work. This patch adds an option --dtshd which can be enabled if you use a DTS-capable receiver behind a HDMI link.
Diffstat (limited to 'core')
-rw-r--r--core/cfg-mplayer.h1
-rw-r--r--core/options.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/core/cfg-mplayer.h b/core/cfg-mplayer.h
index 32058e92b6..6a3d75ce21 100644
--- a/core/cfg-mplayer.h
+++ b/core/cfg-mplayer.h
@@ -441,6 +441,7 @@ const m_option_t common_opts[] = {
OPT_STRING("ad", audio_decoders, 0),
OPT_STRING("vd", video_decoders, 0),
+ OPT_FLAG("dtshd", dtshd, 0),
OPT_CHOICE("hwdec", hwdec_api, 0,
({"no", 0},
diff --git a/core/options.h b/core/options.h
index c9517f0ead..9f54598361 100644
--- a/core/options.h
+++ b/core/options.h
@@ -132,6 +132,7 @@ typedef struct MPOpts {
int audio_output_channels;
int audio_output_format;
+ int dtshd;
float playback_speed;
float drc_level;
struct m_obj_settings *vf_settings;