Commit 5484cbe9 authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

lavfi/vsrc_mandelbrot: replace round by lrint

lrint is at least as fast, and is more accurate.
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 425c0685
......@@ -183,7 +183,7 @@ static void fill_from_cache(AVFilterContext *ctx, uint32_t *color, int *in_cidx,
int x;
if(p->p[1] > py)
break;
x= round((p->p[0] - s->start_x) / scale + s->w/2);
x= lrint((p->p[0] - s->start_x) / scale + s->w/2);
if(x<0 || x >= s->w)
continue;
if(color) color[x] = p->val;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment