[FFmpeg-cvslog] mandelbrot: only check periodicity once for each period instead of twice.
Michael Niedermayer
git at videolan.org
Sun Nov 13 17:05:38 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Nov 13 16:37:55 2011 +0100| [1d066087327ef3eb496ad5d78b4ccc0d40c5c9d6] | committer: Michael Niedermayer
mandelbrot: only check periodicity once for each period instead of twice.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1d066087327ef3eb496ad5d78b4ccc0d40c5c9d6
---
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 7bcf3b7..6f9644d 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;
More information about the ffmpeg-cvslog
mailing list