help clang static analyzer

This commit is contained in:
Robin Gareus 2016-02-20 20:36:58 +01:00
parent f519edbe8e
commit 67d99a3c5b

View File

@ -35,6 +35,7 @@ Analyser::Analyser (float sample_rate, unsigned int channels, framecnt_t bufsize
//printf ("NEW ANALYSER %p r:%.1f c:%d f:%ld l%ld\n", this, sample_rate, channels, bufsize, n_samples);
assert (bufsize % channels == 0);
assert (bufsize > 1);
assert (_bufsize > 0);
if (channels > 0 && channels <= 2) {
using namespace Vamp::HostExt;
PluginLoader* loader (PluginLoader::getInstance ());