diff options
Diffstat (limited to 'audio/chmap.c')
-rw-r--r-- | audio/chmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/chmap.c b/audio/chmap.c index f04815d210..93a15f2f57 100644 --- a/audio/chmap.c +++ b/audio/chmap.c @@ -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; |