diff options
author | wm4 <wm4@nowhere> | 2013-05-13 18:17:27 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-13 18:27:09 +0200 |
commit | a39d369c254ff6db3689b6f945bb057754510af7 (patch) | |
tree | 28ceeeedc45a35295ba6093e9e574cb562bb0b61 /audio/out | |
parent | 636e1edd9e3bbfb2085ed5b3014b4a9e1fab3274 (diff) | |
download | mpv-a39d369c254ff6db3689b6f945bb057754510af7.tar.bz2 mpv-a39d369c254ff6db3689b6f945bb057754510af7.tar.xz |
audio: fix ALSA 4 channel surround output
It turns out that ALSA's 4 channel layout is different from mpv's and
ffmpeg's 4.0 layout. Thus trying to do 4 channel output led to incorrect
remixing via lib{av,sw}resample.
Fix the default layouts for the internal filter chain as well, although
I'm not sure if it matters at all.
Diffstat (limited to 'audio/out')
-rw-r--r-- | audio/out/ao_alsa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c index 93327881e5..d2e8180608 100644 --- a/audio/out/ao_alsa.c +++ b/audio/out/ao_alsa.c @@ -325,7 +325,7 @@ static const char *device_channel_layouts[][2] = { {"rear", "bl-br"}, {"center_lfe", "fc-lfe"}, {"side", "sl-sr"}, - {"surround40", "fl-fr-fc-bc"}, + {"surround40", "fl-fr-bl-br"}, {"surround50", "fl-fr-bl-br-fc"}, {"surround41", "fl-fr-bl-br-lfe"}, {"surround51", "fl-fr-bl-br-fc-lfe"}, |