summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-07 23:26:33 +0200
committerwm4 <wm4@nowhere>2015-05-07 23:26:33 +0200
commit7b09654c33ca81aede475235121ebc938791dc80 (patch)
treeefa980273932bc305be19c69ff5a4a7014f146e1 /audio
parent55e777f10b3e241f2634b471e482bab230773ce0 (diff)
downloadmpv-7b09654c33ca81aede475235121ebc938791dc80.tar.bz2
mpv-7b09654c33ca81aede475235121ebc938791dc80.tar.xz
audio: fix messed up assert()
This made no sense and always evaluated to true.
Diffstat (limited to 'audio')
-rw-r--r--audio/chmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/chmap.c b/audio/chmap.c
index c15a63804d..269f23ee4d 100644
--- a/audio/chmap.c
+++ b/audio/chmap.c
@@ -392,7 +392,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