[vlc-commits] equalizer: fix out of range test case
Rémi Denis-Courmont
git at videolan.org
Fri Aug 8 19:29:58 CEST 2014
vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Aug 8 20:23:01 2014 +0300| [bff9ec70da473783b6aa992afd6b3e86584fd52e] | committer: Rémi Denis-Courmont
equalizer: fix out of range test case
(cherry picked from commit ee77bd03d27f987750aab648016376f58d72f7bf)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=bff9ec70da473783b6aa992afd6b3e86584fd52e
---
test/libvlc/equalizer.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/libvlc/equalizer.c b/test/libvlc/equalizer.c
index e7c5ad5..d260230 100644
--- a/test/libvlc/equalizer.c
+++ b/test/libvlc/equalizer.c
@@ -3,6 +3,7 @@
*/
#include <string.h>
+#include <math.h>
#include "test.h"
@@ -118,7 +119,7 @@ static void test_equalizer (const char ** argv, int argc)
// amp at index out of range
- assert (0.0f == libvlc_audio_equalizer_get_amp_at_index (equalizer, u_bands));
+ assert (isnan(libvlc_audio_equalizer_get_amp_at_index (equalizer, u_bands)));
assert (-1 == libvlc_audio_equalizer_set_amp_at_index (equalizer, 19.9f, u_bands));
// no equalizer
More information about the vlc-commits
mailing list