changeset 968:6b931eeba385

clarify
author Chris Cannam
date Wed, 03 Sep 2014 11:04:41 +0100
parents 0a35adfb7b16
children a8aed8a85e09
files data/fileio/test/AudioFileReaderTest.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/fileio/test/AudioFileReaderTest.h	Wed Sep 03 11:01:50 2014 +0100
+++ b/data/fileio/test/AudioFileReaderTest.h	Wed Sep 03 11:04:41 2014 +0100
@@ -169,7 +169,7 @@
 		totdiff += diff;
                 // in edge areas, record this only if it exceeds edgeLimit
                 if (i < edgeSize || i + edgeSize >= read - offset) {
-                    if (diff > edgeLimit) {
+                    if (diff > edgeLimit && diff > maxdiff) {
                         maxdiff = diff;
                         maxAt = i;
                     }