vsrc_mandelbrot: fix inner=period, the previous optimizations broke it.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
833a195905
commit
2c44aed82a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user