ffmpeg | branch: master | Michael Niedermayer <mich...@niedermayer.cc> | Tue 
Nov 24 02:59:59 2015 +0100| [e4bfc726cd9c68c6ad3b8f5d9633f32ae2d6a943] | 
committer: Michael Niedermayer

avfilter/vsrc_mandelbrot: Fix speed regression

Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc>

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

 libavfilter/vsrc_mandelbrot.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c
index 950c5c8..bdcad25 100644
--- a/libavfilter/vsrc_mandelbrot.c
+++ b/libavfilter/vsrc_mandelbrot.c
@@ -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;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to