diff maths/MathUtilities.cpp @ 58:d72fcd34d9a7

* Fixes to problems shown up by vamp-plugin-tester. Still not all plugins pass all tests, though
author cannam
date Mon, 23 Mar 2009 16:28:53 +0000
parents 7fe29d8a7eaf
children 054c384d860d
line wrap: on
line diff
--- a/maths/MathUtilities.cpp	Fri Feb 27 13:07:22 2009 +0000
+++ b/maths/MathUtilities.cpp	Mon Mar 23 16:28:53 2009 +0000
@@ -163,6 +163,11 @@
     unsigned int i;
     double temp = 0.0;
     double a=0.0;
+
+    if (len == 0) {
+        *min = *max = 0;
+        return;
+    }
 	
     *min = data[0];
     *max = data[0];