changeset 189:5ce2c3f79a45

* Fix horrible memory access error
author cannam
date Wed, 17 Sep 2008 11:00:51 +0000
parents 5a6446a2346a
children 1982246a3902
files vamp-sdk/PluginAdapter.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vamp-sdk/PluginAdapter.cpp	Mon Sep 15 16:04:25 2008 +0000
+++ b/vamp-sdk/PluginAdapter.cpp	Wed Sep 17 11:00:51 2008 +0000
@@ -839,7 +839,7 @@
         m_fs[plugin][n].features[m_fsizes[plugin][n]].v1.valueCount = 0;
         m_fs[plugin][n].features[m_fsizes[plugin][n]].v1.values = 0;
         m_fs[plugin][n].features[m_fsizes[plugin][n]].v1.label = 0;
-        m_fs[plugin][n].features[m_fsizes[plugin][n + sz]].v2.hasDuration = 0;
+        m_fs[plugin][n].features[m_fsizes[plugin][n] + sz].v2.hasDuration = 0;
         m_fvsizes[plugin][n].push_back(0);
         m_fsizes[plugin][n]++;
     }