diff options
author | wm4 <wm4@nowhere> | 2015-02-23 16:25:12 +0100 |
---|---|---|
committer | Diogo Franco (Kovensky) <diogomfranco@gmail.com> | 2015-02-25 10:51:05 +0900 |
commit | 352c00fd086089021b44e475d66b81fb1dd27619 (patch) | |
tree | 4a2d5dd7cbca3fd5dfd45221c6694bdeacb039d8 | |
parent | 589b38c187671f3c9144c5f50db08dd1af7c00d1 (diff) | |
download | mpv-352c00fd086089021b44e475d66b81fb1dd27619.tar.bz2 mpv-352c00fd086089021b44e475d66b81fb1dd27619.tar.xz |
encoding: allow encoding to channel configurations other than stereo
A while ago, we made mpv output the native number of channels by
default, instead of stereo. I assumed this was not wanted for encode
mode.
This commit keeps the assumption, but allows setting the number of audio
output channels at all, instead of always forcing stereo. (Pretty much a
hack.)
(cherry picked from commit 636d6d724d36b90812a0c145bbf40143be9a52e8)
-rw-r--r-- | player/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/player/main.c b/player/main.c index 98c5861f13..dbd969ecef 100644 --- a/player/main.c +++ b/player/main.c @@ -408,7 +408,9 @@ int mp_initialize(struct MPContext *mpctx) m_config_set_option0(mpctx->mconfig, "load-scripts", "no"); m_config_set_option0(mpctx->mconfig, "osc", "no"); m_config_set_option0(mpctx->mconfig, "framedrop", "no"); - m_config_set_option0(mpctx->mconfig, "audio-channels", "stereo"); + // never use auto + if (!opts->audio_output_channels.num) + m_config_set_option0(mpctx->mconfig, "audio-channels", "stereo"); mp_input_enable_section(mpctx->input, "encode", MP_INPUT_EXCLUSIVE); } #endif |