summaryrefslogtreecommitdiff
path: root/libs/audiographer
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-02-11 23:12:20 +0100
committerRobin Gareus <robin@gareus.org>2016-02-11 23:12:20 +0100
commit4fd47182f2bf2e1a88b5f2f1c880e592addb1bc9 (patch)
tree8875a8275f5fe525517f284c82973e3a85baa8c7 /libs/audiographer
parent9766f88ee5e0aa1ec4e34688ec27d39256883ab4 (diff)
Help clang static analyzer.
Diffstat (limited to 'libs/audiographer')
-rw-r--r--libs/audiographer/src/general/analyser.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/audiographer/src/general/analyser.cc b/libs/audiographer/src/general/analyser.cc
index 833fbcb2f9..23c85e8a7c 100644
--- a/libs/audiographer/src/general/analyser.cc
+++ b/libs/audiographer/src/general/analyser.cc
@@ -31,6 +31,7 @@ Analyser::Analyser (float sample_rate, unsigned int channels, framecnt_t bufsize
, _pos (0)
{
assert (bufsize % channels == 0);
+ assert (bufsize > 1);
//printf ("NEW ANALYSER %p r:%.1f c:%d f:%ld l%ld\n", this, sample_rate, channels, bufsize, n_samples);
if (channels > 0 && channels <= 2) {
using namespace Vamp::HostExt;