[FFmpeg-cvslog] vsrc_mandelbrot: always store values for periodicity checking, this avoids a few checks.

Michael Niedermayer git at videolan.org
Sat Nov 19 15:26:36 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov 19 15:02:34 2011 +0100| [56fc4cf04f9ed878cf8e159981f5d136af807973] | committer: Michael Niedermayer

vsrc_mandelbrot: always store values for periodicity checking, this avoids a few checks.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=56fc4cf04f9ed878cf8e159981f5d136af807973
---

 libavfilter/vsrc_mandelbrot.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c
index 68f65bc..79467fb 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; i<mb->maxiter-8; i++){



More information about the ffmpeg-cvslog mailing list