diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-26 00:19:12 +0300 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-27 07:29:22 +0300 |
commit | 3e2e303e4b0f56e8be8bebcd2db71c69ea128e47 (patch) | |
tree | 5874ce4b0fe0d5896e6eb189d5980401f6f61a63 /libavfilter/avf_showspectrum.c | |
parent | 4e7cfefa16afb01bc34d5cddb39a1352d50f978b (diff) |
lavfi/avf_showspectrum: replace rint by lrint
avoids float to int cast.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavfilter/avf_showspectrum.c')
-rw-r--r-- | libavfilter/avf_showspectrum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c index 7d5c4380c6..f6f16fc655 100644 --- a/libavfilter/avf_showspectrum.c +++ b/libavfilter/avf_showspectrum.c @@ -448,7 +448,7 @@ static int plot_spectrum_column(AVFilterLink *inlink, AVFrame *insamples) (outlink->h - 1) * outpicref->linesize[plane] + s->xpos; for (y = 0; y < outlink->h; y++) { - *p = rint(FFMAX(0, FFMIN(s->combine_buffer[3 * y + plane], 255))); + *p = lrint(FFMAX(0, FFMIN(s->combine_buffer[3 * y + plane], 255))); p -= outpicref->linesize[plane]; } } |