Commit 4cc4ca58 authored by Michael Niedermayer's avatar Michael Niedermayer

mandelbrot: fix inner=period coloring routine

Fixes CID717571
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9c669672
...@@ -346,7 +346,7 @@ static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize, ...@@ -346,7 +346,7 @@ static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize,
break; break;
if(j){ if(j){
c= i-j; c= i-j;
c= ((c<<5)&0xE0) + ((c<<16)&0xE000) + ((c<<27)&0xE00000); c= ((c<<5)&0xE0) + ((c<<10)&0xE000) + ((c<<15)&0xE00000);
} }
}else if(mb->inner==CONVTIME){ }else if(mb->inner==CONVTIME){
c= floor(i*255.0/mb->maxiter+dv)*0x010101; c= floor(i*255.0/mb->maxiter+dv)*0x010101;
......
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