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

audio: fix messed up channel reordering

Quite a blunder, really.
This commit is contained in:
wm4 2015-06-12 17:45:47 +02:00
parent 627b87b0d8
commit 11fee81a7a

View File

@ -384,8 +384,8 @@ void mp_chmap_get_reorder(int src[MP_NUM_CHANNELS], const struct mp_chmap *from,
return;
}
for (int n = 0; n < from->num; n++) {
for (int i = 0; i < to->num; i++) {
for (int n = 0; n < to->num; n++) {
for (int i = 0; i < from->num; i++) {
if (to->speaker[n] == from->speaker[i]) {
src[n] = i;
break;