From 249789c256ddffb6fc6eaf628b2653c195dcdac8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 10 Mar 2014 02:09:18 +0100 Subject: 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. --- options/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'options/options.c') 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), -- cgit v1.2.3