tmv: Add missing uses of tmv_zero()
Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>master
parent
759f3f4019
commit
288810bb36
2
mave.c
2
mave.c
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
2
tsproc.c
2
tsproc.c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue