diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-16 14:54:53 -0500 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-19 09:34:26 -0800 |
commit | 5484cbe9f765124f9e9c704467c6013731d71ed0 (patch) | |
tree | ac078d586dc7b8fe3243cd4d733631467f04e878 /libavfilter/vsrc_mandelbrot.c | |
parent | 425c0685f245d715f2da7066c5a89564c1ab146b (diff) | |
download | ffmpeg-5484cbe9f765124f9e9c704467c6013731d71ed0.tar.gz |
lavfi/vsrc_mandelbrot: replace round by lrint
lrint is at least as fast, and is more accurate.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavfilter/vsrc_mandelbrot.c')
-rw-r--r-- | libavfilter/vsrc_mandelbrot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c index 063b7d1894..2f6944f02f 100644 --- a/libavfilter/vsrc_mandelbrot.c +++ b/libavfilter/vsrc_mandelbrot.c @@ -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; |