[FFmpeg-cvslog] mandelbrot: increase cache size
Michael Niedermayer
git at videolan.org
Sat Nov 12 17:23:17 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Nov 12 17:04:50 2011 +0100| [905202ef6e5fe0351782eac17946e191b6b5e562] | committer: Michael Niedermayer
mandelbrot: increase cache size
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=905202ef6e5fe0351782eac17946e191b6b5e562
---
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 d878632..21b78cd 100644
--- a/libavfilter/vsrc_mandelbrot.c
+++ b/libavfilter/vsrc_mandelbrot.c
@@ -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);
More information about the ffmpeg-cvslog
mailing list