mirror of https://github.com/mpv-player/mpv
encode: make --audio-channels=auto work
Basically requested. Not that anyone cares.
This commit is contained in:
parent
2a2391d3d8
commit
331b21f267
|
@ -444,8 +444,10 @@ int mp_initialize(struct MPContext *mpctx, char **options)
|
||||||
m_config_set_option0(mpctx->mconfig, "osc", "no");
|
m_config_set_option0(mpctx->mconfig, "osc", "no");
|
||||||
m_config_set_option0(mpctx->mconfig, "framedrop", "no");
|
m_config_set_option0(mpctx->mconfig, "framedrop", "no");
|
||||||
// never use auto
|
// never use auto
|
||||||
if (!opts->audio_output_channels.num)
|
if (!opts->audio_output_channels.num) {
|
||||||
m_config_set_option0(mpctx->mconfig, "audio-channels", "stereo");
|
m_config_set_option_ext(mpctx->mconfig, bstr0("audio-channels"),
|
||||||
|
bstr0("stereo"), M_SETOPT_PRESERVE_CMDLINE);
|
||||||
|
}
|
||||||
mp_input_enable_section(mpctx->input, "encode", MP_INPUT_EXCLUSIVE);
|
mp_input_enable_section(mpctx->input, "encode", MP_INPUT_EXCLUSIVE);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue