[FFmpeg-cvslog] vsrc_mandelbrot: avoid a | in interpol()

Michael Niedermayer git at videolan.org
Sun Nov 20 00:07:21 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov 19 22:07:10 2011 +0100| [4ebbcdb3eb157100fd98b74896fb33c0fb3d2a7c] | committer: Michael Niedermayer

vsrc_mandelbrot: avoid a | in interpol()

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

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

 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 f82d641..10e010f 100644
--- a/libavfilter/vsrc_mandelbrot.c
+++ b/libavfilter/vsrc_mandelbrot.c
@@ -209,7 +209,7 @@ static void fill_from_cache(AVFilterContext *ctx, uint32_t *color, int *in_cidx,
 static int interpol(MBContext *mb, uint32_t *color, int x, int y, int linesize)
 {
     uint32_t a,b,c,d, i;
-    uint32_t ipol=0;
+    uint32_t ipol=0xFF000000;
     int dist;
 
     if(!x || !y || x+1==mb->w || y+1==mb->h)
@@ -254,7 +254,7 @@ static int interpol(MBContext *mb, uint32_t *color, int x, int y, int linesize)
             return 0;
         ipol |= ((ipolab + ipolcd + 2)/4)<<s;
     }
-    color[x + y*linesize]= ipol | 0xFF000000;
+    color[x + y*linesize]= ipol;
     return 1;
 }
 



More information about the ffmpeg-cvslog mailing list