[FFmpeg-cvslog] mandelbrot: Print a note if the cache is too small

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:05:11 2011 +0100| [32dd67162af06d6621d1731580ed6ad5bc4087b7] | committer: Michael Niedermayer

mandelbrot: Print a note if the cache is too small

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

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

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

diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c
index 21b78cd..b52ac03 100644
--- a/libavfilter/vsrc_mandelbrot.c
+++ b/libavfilter/vsrc_mandelbrot.c
@@ -210,6 +210,8 @@ static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize,
     }
     FFSWAP(void*, mb->next_cache, mb->point_cache);
     mb->cache_used = next_cidx;
+    if(mb->cache_used == mb->cache_allocated)
+        av_log(0, AV_LOG_INFO, "Mandelbrot cache is too small!\n");
 }
 
 static int request_frame(AVFilterLink *link)



More information about the ffmpeg-cvslog mailing list