summaryrefslogtreecommitdiffstats
path: root/libavfilter/vsrc_mandelbrot.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-11-24 02:59:59 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-11-24 03:17:32 +0100
commite4bfc726cd9c68c6ad3b8f5d9633f32ae2d6a943 (patch)
treea38318481787bd8e561b2f9d3f635ff5d1eab811 /libavfilter/vsrc_mandelbrot.c
parent66378f70ab77ca34fbad7dcbd94706aba6cfd30a (diff)
downloadffmpeg-streaming-e4bfc726cd9c68c6ad3b8f5d9633f32ae2d6a943.zip
ffmpeg-streaming-e4bfc726cd9c68c6ad3b8f5d9633f32ae2d6a943.tar.gz
avfilter/vsrc_mandelbrot: Fix speed regression
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter/vsrc_mandelbrot.c')
-rw-r--r--libavfilter/vsrc_mandelbrot.c1
1 files changed, 1 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud