Commit 2c44aed8 authored by Michael Niedermayer's avatar Michael Niedermayer

vsrc_mandelbrot: fix inner=period, the previous optimizations broke it.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 833a1959
......@@ -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;
......
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