aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-12 17:05:11 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-12 17:05:11 +0100
commit32dd67162af06d6621d1731580ed6ad5bc4087b7 (patch)
treee47c41cf362a67b49547209a49aa435f787c955b /libavfilter
parent905202ef6e5fe0351782eac17946e191b6b5e562 (diff)
downloadffmpeg-32dd67162af06d6621d1731580ed6ad5bc4087b7.tar.gz
mandelbrot: Print a note if the cache is too small
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vsrc_mandelbrot.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c
index 21b78cdabf..b52ac031f3 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)