aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-11-25 17:49:22 -0500
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-02 18:31:56 -0500
commitd64b6c38198ea35a08ceda396ebc4745138ad6ec (patch)
tree561e5d6bb6e7a316ef7d14a48e4093554b598fff /libavfilter
parentc6bea81acfa49d7e73f625332fc304d8a0fd09bd (diff)
downloadffmpeg-d64b6c38198ea35a08ceda396ebc4745138ad6ec.tar.gz
avfilter/af_flanger: use rint instead of floor hack
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/af_flanger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_flanger.c b/libavfilter/af_flanger.c
index f8ec8303d1..a92367c97a 100644
--- a/libavfilter/af_flanger.c
+++ b/libavfilter/af_flanger.c
@@ -130,7 +130,7 @@ static int config_input(AVFilterLink *inlink)
return AVERROR(ENOMEM);
ff_generate_wave_table(s->wave_shape, AV_SAMPLE_FMT_FLT, s->lfo, s->lfo_length,
- floor(s->delay_min * inlink->sample_rate + 0.5),
+ rint(s->delay_min * inlink->sample_rate),
s->max_samples - 2., 3 * M_PI_2);
return av_samples_alloc_array_and_samples(&s->delay_buffer, NULL,