aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-16 04:00:55 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-16 04:00:55 +0200
commit4cc4ca584736a2221697d55c9e4863a14f32bd8d (patch)
tree788c3c68d2d37fd463bcc6da56418f156fc12f4c
parent9c669672c7fd45ef1cad782ab551be438ceac6cd (diff)
downloadffmpeg-4cc4ca584736a2221697d55c9e4863a14f32bd8d.tar.gz
mandelbrot: fix inner=period coloring routine
Fixes CID717571 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/vsrc_mandelbrot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c
index 1fbf828085..68a9cf798a 100644
--- a/libavfilter/vsrc_mandelbrot.c
+++ b/libavfilter/vsrc_mandelbrot.c
@@ -346,7 +346,7 @@ static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize,
break;
if(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){
c= floor(i*255.0/mb->maxiter+dv)*0x010101;