[FFmpeg-cvslog] vsrc_mandelbrot: increase zyklus array size so that optimizations can write a bit more.

Michael Niedermayer git at videolan.org
Sat Nov 19 15:26:35 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov 19 14:16:53 2011 +0100| [e749b3780c288591159f078b00a8d859d7cb4905] | committer: Michael Niedermayer

vsrc_mandelbrot: increase zyklus array size so that optimizations can write a bit more.

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

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

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

diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c
index 9aea384..d7f51db 100644
--- a/libavfilter/vsrc_mandelbrot.c
+++ b/libavfilter/vsrc_mandelbrot.c
@@ -148,7 +148,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
     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);
-    mb-> zyklus    = av_malloc(sizeof(*mb->zyklus) * mb->maxiter);
+    mb-> zyklus    = av_malloc(sizeof(*mb->zyklus) * (mb->maxiter+16));
 
     return 0;
 }



More information about the ffmpeg-cvslog mailing list