summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/chmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/chmap.c b/audio/chmap.c
index 7e62dab74a..1c40c66b0f 100644
--- a/audio/chmap.c
+++ b/audio/chmap.c
@@ -397,7 +397,7 @@ void mp_chmap_get_reorder(int src[MP_NUM_CHANNELS], const struct mp_chmap *from,
}
for (int n = 0; n < to->num; n++)
- assert(to->speaker[n] == src[n] < 0 ? -1 : from->speaker[src[n]]);
+ assert(src[n] < 0 || (to->speaker[n] == from->speaker[src[n]]));
}
// Performs the difference between a and b, and store it in diff. If b has