avfilter/vsrc_mandelbrot: Fix speed regression
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 24 Nov 2015 01:59:59 +0000 (02:59 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 24 Nov 2015 02:17:32 +0000 (03:17 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/vsrc_mandelbrot.c

index 950c5c8..bdcad25 100644 (file)
@@ -379,6 +379,7 @@ static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize,
                     c= lrintf((s->zyklus[closest_index][0]/closest+1)*127+dv) + lrintf((s->zyklus[closest_index][1]/closest+1)*127+dv)*256;
                 }
             }
+            c |= 0xFF000000;
             color[x + y*linesize]= c;
             if(next_cidx < s->cache_allocated){
                 s->next_cache[next_cidx  ].p[0]= cr;