[FFmpeg-cvslog] vsrc_mandelbrot: fix inner=period, the previous optimizations broke it.
Michael Niedermayer
git at videolan.org
Mon Nov 21 05:19:18 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Nov 21 04:16:41 2011 +0100| [2c44aed82ac451ff92013be5702c1425025477c1] | committer: Michael Niedermayer
vsrc_mandelbrot: fix inner=period, the previous optimizations broke it.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2c44aed82ac451ff92013be5702c1425025477c1
---
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 d12981a..1254fef 100644
--- a/libavfilter/vsrc_mandelbrot.c
+++ b/libavfilter/vsrc_mandelbrot.c
@@ -355,7 +355,7 @@ static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize,
if(mb->inner==PERIOD){
int j;
for(j=i-1; j; j--)
- if(SQR(mb->zyklus[j][0]-zr) + SQR(mb->zyklus[j][1]-zi) < 0.0000000000000001)
+ if(SQR(mb->zyklus[j][0]-zr) + SQR(mb->zyklus[j][1]-zi) < epsilon*epsilon*10)
break;
if(j){
c= i-j;
More information about the ffmpeg-cvslog
mailing list