mandelbrot: make 2 variables const
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 11 Nov 2011 22:39:26 +0000 (23:39 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 11 Nov 2011 23:04:15 +0000 (00:04 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vsrc_mandelbrot.c

index 183e2a1..99dc8bf 100644 (file)
@@ -121,8 +121,8 @@ static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize,
 
     for(y=0; y<mb->h; y++){
         for(x=0; x<mb->w; x++){
-            double cr=mb->start_x+mb->start_scale*x;
-            double ci=mb->start_y+mb->start_scale*y;
+            const double cr=mb->start_x+mb->start_scale*x;
+            const double ci=mb->start_y+mb->start_scale*y;
             double zr=cr;
             double zi=ci;
             uint32_t c=0;