diff options
Diffstat (limited to 'nusmuk-utils')
-rw-r--r-- | nusmuk-utils/tab_upsample.c | 2 | ||||
-rw-r--r-- | nusmuk-utils/tab_upsample_copy.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/nusmuk-utils/tab_upsample.c b/nusmuk-utils/tab_upsample.c index 36d2188..bb32d6e 100644 --- a/nusmuk-utils/tab_upsample.c +++ b/nusmuk-utils/tab_upsample.c @@ -36,6 +36,8 @@ void tab_upsample_compute(t_tab_upsample *x) int nb_max, i, index_dst; + x->factor = MAX(x->factor, 1); + if (!(a_src = (t_garray *)pd_findbyclass(x->x_arrayname_src, garray_class))) pd_error(x, "%s: no such array", x->x_arrayname_src->s_name); else if (!garray_getfloatwords(a_src, &npoints_src, &vec_src)) diff --git a/nusmuk-utils/tab_upsample_copy.c b/nusmuk-utils/tab_upsample_copy.c index 5b5687b..c123896 100644 --- a/nusmuk-utils/tab_upsample_copy.c +++ b/nusmuk-utils/tab_upsample_copy.c @@ -35,7 +35,7 @@ void tab_upsample_copy_compute(t_tab_upsample_copy *x) t_word *vec_src, *vec_dst; int nb_max, i, j; - + if (!(a_src = (t_garray *)pd_findbyclass(x->x_arrayname_src, garray_class))) pd_error(x, "%s: no such array", x->x_arrayname_src->s_name); else if (!garray_getfloatwords(a_src, &npoints_src, &vec_src)) |