aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-13 16:37:55 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-13 17:01:56 +0100
commit1d066087327ef3eb496ad5d78b4ccc0d40c5c9d6 (patch)
tree37546c70db0dac230c3da09007f4e5aa85347957
parent2fee131b9e5fa17b2fac023eaac53984a9d7cb40 (diff)
downloadffmpeg-1d066087327ef3eb496ad5d78b4ccc0d40c5c9d6.tar.gz
mandelbrot: only check periodicity once for each period instead of twice.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/vsrc_mandelbrot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c
index 7bcf3b7621..6f9644d198 100644
--- a/libavfilter/vsrc_mandelbrot.c
+++ b/libavfilter/vsrc_mandelbrot.c
@@ -194,7 +194,7 @@ static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize,
zi= 2*zr*zi + ci;
zr= t + cr;
if(use_zyklus){
- if(i && mb->zyklus[i>>1][0]==zr && mb->zyklus[i>>1][1]==zi)
+ if((i&1) && mb->zyklus[i>>1][0]==zr && mb->zyklus[i>>1][1]==zi)
break;
mb->zyklus[i][0]= zr;
mb->zyklus[i][1]= zi;