summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-10 02:09:18 +0100
committerwm4 <wm4@nowhere>2014-03-10 02:09:18 +0100
commit249789c256ddffb6fc6eaf628b2653c195dcdac8 (patch)
treeb9f1d222f98eecf9f864782215ecd9b9223eacf1 /options
parent378a15564c1203aea0c3076581c666863228c7f2 (diff)
downloadmpv-249789c256ddffb6fc6eaf628b2653c195dcdac8.tar.bz2
mpv-249789c256ddffb6fc6eaf628b2653c195dcdac8.tar.xz
audio: make --channels option always force the output layout
Use the --channels value directly on the AO, instead of doing it only in the --channels=stereo (default) case and if the decoder output is not stereo.
Diffstat (limited to 'options')
-rw-r--r--options/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/options/options.c b/options/options.c
index 30564ba018..4dd9957e47 100644
--- a/options/options.c
+++ b/options/options.c
@@ -359,7 +359,7 @@ const m_option_t mp_opts[] = {
// force video/audio rate:
OPT_DOUBLE("fps", force_fps, CONF_MIN | M_OPT_FIXED),
OPT_INTRANGE("srate", force_srate, 0, 1000, 8*48000),
- OPT_CHMAP("channels", audio_output_channels, CONF_MIN, .min = 1),
+ OPT_CHMAP("channels", audio_output_channels, CONF_MIN, .min = 0),
OPT_AUDIOFORMAT("format", audio_output_format, 0),
OPT_DOUBLE("speed", playback_speed, M_OPT_RANGE | M_OPT_FIXED,
.min = 0.01, .max = 100.0),