[FFmpeg-cvslog] mandelbrot: make 2 variables const

Michael Niedermayer git at videolan.org
Sat Nov 12 00:08:38 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov 11 23:39:26 2011 +0100| [aa198ad67927232663e7e0d838adf9c42d2e6dca] | committer: Michael Niedermayer

mandelbrot: make 2 variables const

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aa198ad67927232663e7e0d838adf9c42d2e6dca
---

 libavfilter/vsrc_mandelbrot.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c
index 183e2a1..99dc8bf 100644
--- a/libavfilter/vsrc_mandelbrot.c
+++ b/libavfilter/vsrc_mandelbrot.c
@@ -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;



More information about the ffmpeg-cvslog mailing list