]> git.sesse.net Git - ffmpeg/commitdiff
mandelbrot: increase cache size
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 12 Nov 2011 16:04:50 +0000 (17:04 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 12 Nov 2011 16:04:50 +0000 (17:04 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vsrc_mandelbrot.c

index d878632ba3c15ae663d4b0582c6006a1d70a76b4..21b78cdabf9744307feb54aadd608109160e8284 100644 (file)
@@ -93,7 +93,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
     mb->time_base.num = frame_rate_q.den;
     mb->time_base.den = frame_rate_q.num;
 
-    mb->cache_allocated = mb->w * mb->h*2;
+    mb->cache_allocated = mb->w * mb->h * 3;
     mb->cache_used = 0;
     mb->point_cache= av_malloc(sizeof(*mb->point_cache)*mb->cache_allocated);
     mb-> next_cache= av_malloc(sizeof(*mb-> next_cache)*mb->cache_allocated);