diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-11-19 15:02:34 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-19 15:02:34 +0100 |
commit | 56fc4cf04f9ed878cf8e159981f5d136af807973 (patch) | |
tree | c95e8ed0071b00a640b706b05ca54546afae10c5 /libavfilter | |
parent | da1344e0cd3c796791e984d6e66721e5a457e466 (diff) | |
download | ffmpeg-56fc4cf04f9ed878cf8e159981f5d136af807973.tar.gz |
vsrc_mandelbrot: always store values for periodicity checking, this avoids a few checks.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | 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 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; i<mb->maxiter-8; i++){ |