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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-11-21 04:16:41 +01:00
parent 833a195905
commit 2c44aed82a

View File

@ -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;