X-Git-Url: https://code.delx.au/pulseaudio/blobdiff_plain/c4e276edbd84cbb8c5b594c9f427b0a25a7fb2ab..8534149fbe87c63a5af85f5610c0f62b45500d90:/src/pulsecore/time-smoother.c diff --git a/src/pulsecore/time-smoother.c b/src/pulsecore/time-smoother.c index 1371ad56..0696cabc 100644 --- a/src/pulsecore/time-smoother.c +++ b/src/pulsecore/time-smoother.c @@ -320,10 +320,8 @@ static void estimate(pa_smoother *s, pa_usec_t x, pa_usec_t *y, double *deriv) { calc_abc(s); - tx = (double) x; - /* Move to origin */ - tx -= (double) s->ex; + tx = (double) (x - s->ex); /* Horner scheme */ ty = (tx * (s->c + tx * (s->b + tx * s->a)));