Skip to content
Snippets Groups Projects
Commit 32dd6716 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

mandelbrot: Print a note if the cache is too small

parent 905202ef
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment