[FFmpeg-cvslog] mandelbrot: fix typo that led to hardcoded max iteration count.
Michael Niedermayer
git at videolan.org
Sat Nov 12 00:08:38 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov 11 23:38:27 2011 +0100| [0e5b05134b325b9eefc706e99b05598300d55b7f] | committer: Michael Niedermayer
mandelbrot: fix typo that led to hardcoded max iteration count.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0e5b05134b325b9eefc706e99b05598300d55b7f
---
libavfilter/vsrc_mandelbrot.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c
index fef5733..183e2a1 100644
--- a/libavfilter/vsrc_mandelbrot.c
+++ b/libavfilter/vsrc_mandelbrot.c
@@ -55,7 +55,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
AVRational frame_rate_q;
int ret;
- mb->maxiter=1024;
+ mb->maxiter=256;
mb->start_x=-2.0;
mb->start_y=-1.5;
mb->start_scale=3.0;
@@ -127,7 +127,7 @@ static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize,
double zi=ci;
uint32_t c=0;
- for(i=0; i<256; i++){
+ for(i=0; i<mb->maxiter; i++){
double t;
if(zr*zr + zi*zi > mb->bailout){
switch(mb->outer){
More information about the ffmpeg-cvslog
mailing list