aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/scalar.c4
-rw-r--r--swig/java/Makefile.am2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/scalar.c b/src/scalar.c
index f259872..b573102 100644
--- a/src/scalar.c
+++ b/src/scalar.c
@@ -419,8 +419,10 @@ int xtract_loudness(const float *data, const int N, const void *argv, float *res
int n = N, rv;
- if(n > XTRACT_BARK_BANDS)
+ if(n > XTRACT_BARK_BANDS){
+ n = XTRACT_BARK_BANDS;
rv = XTRACT_BAD_VECTOR_SIZE;
+ }
else
rv = XTRACT_SUCCESS;
diff --git a/swig/java/Makefile.am b/swig/java/Makefile.am
index 4ff926d..1daa68c 100644
--- a/swig/java/Makefile.am
+++ b/swig/java/Makefile.am
@@ -20,7 +20,7 @@ SWIG_SOURCES = ../xtract.i
lib_LTLIBRARIES = libjxtract.la
libjxtract_la_SOURCES = $(srcdir)/xtract_wrap.c $(SWIG_SOURCES)
libjxtract_la_CFLAGS = $(SWIG_PYTHON_CPPFLAGS) -I$(top_srcdir)/src
-ibjxtract_la_LDFLAGS = -module -lxtract
+libjxtract_la_LDFLAGS = -module -lxtract
libjxtract_la_LIBADD = $(top_srcdir)/src/libxtract.la
SWIG_JAVA_OPT = -java -package xtract.core