Mercurial > hg > svcore
diff data/fileio/test/AudioFileReaderTest.h @ 980:6e6da0636e5e tonioni
Merge from default branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 16:36:21 +0100 |
parents | 6b931eeba385 |
children | a1cd5abcb38b |
line wrap: on
line diff
--- a/data/fileio/test/AudioFileReaderTest.h Tue Sep 02 16:23:48 2014 +0100 +++ b/data/fileio/test/AudioFileReaderTest.h Tue Sep 09 16:36:21 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; }