mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 18:02:11 +00:00
lavfi/avf_showspectrum: replace rint by lrint
avoids float to int cast. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
parent
4e7cfefa16
commit
3e2e303e4b
@ -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];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user