diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-11-13 19:37:55 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-13 20:01:56 +0400 |
commit | 1d066087327ef3eb496ad5d78b4ccc0d40c5c9d6 (patch) | |
tree | 37546c70db0dac230c3da09007f4e5aa85347957 /libavfilter/vsrc_mandelbrot.c | |
parent | 2fee131b9e5fa17b2fac023eaac53984a9d7cb40 (diff) |
mandelbrot: only check periodicity once for each period instead of twice.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vsrc_mandelbrot.c')
-rw-r--r-- | libavfilter/vsrc_mandelbrot.c | 2 |
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; |