From 7b09654c33ca81aede475235121ebc938791dc80 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 7 May 2015 23:26:33 +0200 Subject: audio: fix messed up assert() This made no sense and always evaluated to true. --- audio/chmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3