diff options
author | wm4 <wm4@nowhere> | 2015-05-07 23:26:33 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-07 23:26:33 +0200 |
commit | 7b09654c33ca81aede475235121ebc938791dc80 (patch) | |
tree | efa980273932bc305be19c69ff5a4a7014f146e1 /audio | |
parent | 55e777f10b3e241f2634b471e482bab230773ce0 (diff) | |
download | mpv-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.c | 2 |
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 |