ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanaga...@gmail.com> | Wed Dec 16 14:54:53 2015 -0500| [5484cbe9f765124f9e9c704467c6013731d71ed0] | committer: Ganesh Ajjanagadde
lavfi/vsrc_mandelbrot: replace round by lrint lrint is at least as fast, and is more accurate. Reviewed-by: Michael Niedermayer <mich...@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanaga...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5484cbe9f765124f9e9c704467c6013731d71ed0 --- libavfilter/vsrc_mandelbrot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c index 063b7d1..2f6944f 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; _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog