[FFmpeg-cvslog] avfilter/af_flanger: use rint instead of floor hack
Ganesh Ajjanagadde
git at videolan.org
Thu Dec 3 00:32:28 CET 2015
ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Wed Nov 25 17:49:22 2015 -0500| [d64b6c38198ea35a08ceda396ebc4745138ad6ec] | committer: Ganesh Ajjanagadde
avfilter/af_flanger: use rint instead of floor hack
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d64b6c38198ea35a08ceda396ebc4745138ad6ec
---
libavfilter/af_flanger.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/af_flanger.c b/libavfilter/af_flanger.c
index f8ec830..a92367c 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,
More information about the ffmpeg-cvslog
mailing list