1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-11 04:01:31 +00:00

options: accept --audio-channels=auto

This sounds much more intuitive, while "empty" was a bit of a WTF.
This commit is contained in:
wm4 2014-10-30 22:58:17 +01:00
parent 6c469dc9d9
commit 733936f376
2 changed files with 4 additions and 2 deletions

View File

@ -907,8 +907,9 @@ Audio
lists speaker names, which can be used to express arbitrary channel lists speaker names, which can be used to express arbitrary channel
layouts (e.g. ``fl-fr-lfe`` is 2.1). layouts (e.g. ``fl-fr-lfe`` is 2.1).
You can use ``--audio-channels=empty`` to disable this. In this case, the AO You can use ``--audio-channels=auto`` to disable this. In this case, the AO
use the channel layout as the audio filter chain indicates. use the channel layout as the audio filter chain indicates. (``empty`` is
an accepted obsolete for ``auto``.)
This will also request the channel layout from the decoder. If the decoder This will also request the channel layout from the decoder. If the decoder
does not support the layout, it will fall back to its native channel layout. does not support the layout, it will fall back to its native channel layout.

View File

@ -86,6 +86,7 @@ static const char *const std_layout_names[][2] = {
{"7.1(wide-side)", "fl-fr-fc-lfe-flc-frc-sl-sr"}, {"7.1(wide-side)", "fl-fr-fc-lfe-flc-frc-sl-sr"},
{"octagonal", "fl-fr-fc-bl-br-bc-sl-sr"}, {"octagonal", "fl-fr-fc-bl-br-bc-sl-sr"},
{"downmix", "dl-dr"}, {"downmix", "dl-dr"},
{"auto", ""}, // not in lavc
{0} {0}
}; };