summaryrefslogtreecommitdiffstats
path: root/libavfilter/avf_showspectrum.c
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-25 13:19:12 -0800
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-26 20:29:22 -0800
commit3e2e303e4b0f56e8be8bebcd2db71c69ea128e47 (patch)
tree5874ce4b0fe0d5896e6eb189d5980401f6f61a63 /libavfilter/avf_showspectrum.c
parent4e7cfefa16afb01bc34d5cddb39a1352d50f978b (diff)
downloadffmpeg-streaming-3e2e303e4b0f56e8be8bebcd2db71c69ea128e47.zip
ffmpeg-streaming-3e2e303e4b0f56e8be8bebcd2db71c69ea128e47.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c
index 7d5c438..f6f16fc 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];
}
}
OpenPOWER on IntegriCloud