From 56fc4cf04f9ed878cf8e159981f5d136af807973 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 19 Nov 2011 15:02:34 +0100 Subject: [PATCH] vsrc_mandelbrot: always store values for periodicity checking, this avoids a few checks. Signed-off-by: Michael Niedermayer --- libavfilter/vsrc_mandelbrot.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c index 68f65bcc6c..79467fbe8b 100644 --- a/libavfilter/vsrc_mandelbrot.c +++ b/libavfilter/vsrc_mandelbrot.c @@ -242,9 +242,10 @@ static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize, if(use_zyklus){\ if(Z && mb->zyklus[i>>1][0]==outr && mb->zyklus[i>>1][1]==outi)\ break;\ - mb->zyklus[i][0]= outr;\ - mb->zyklus[i][1]= outi;\ - } + }\ + mb->zyklus[i][0]= outr;\ + mb->zyklus[i][1]= outi;\ + for(i=0; imaxiter-8; i++){