tmv: Add missing uses of tmv_zero()

Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
master
Michael Brown 2018-03-01 18:12:20 +00:00 committed by Richard Cochran
parent 759f3f4019
commit 288810bb36
2 changed files with 2 additions and 2 deletions

2
mave.c
View File

@ -58,7 +58,7 @@ static void mave_reset(struct filter *filter)
m->cnt = 0;
m->index = 0;
m->sum = 0;
m->sum = tmv_zero();
memset(m->val, 0, m->len * sizeof(*m->val));
}

View File

@ -178,7 +178,7 @@ int tsproc_update_delay(struct tsproc *tsp, tmv_t *delay)
int tsproc_update_offset(struct tsproc *tsp, tmv_t *offset, double *weight)
{
tmv_t delay = 0, raw_delay = 0;
tmv_t delay = tmv_zero(), raw_delay = tmv_zero();
if (tmv_is_zero(tsp->t1) || tmv_is_zero(tsp->t2))
return -1;