Commit 0e5b0513 authored by Michael Niedermayer's avatar Michael Niedermayer

mandelbrot: fix typo that led to hardcoded max iteration count.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ef4f4031
......@@ -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){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment