mandelbrot: Print a note if the cache is too small
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
905202ef6e
commit
32dd67162a
@ -210,6 +210,8 @@ static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize,
|
|||||||
}
|
}
|
||||||
FFSWAP(void*, mb->next_cache, mb->point_cache);
|
FFSWAP(void*, mb->next_cache, mb->point_cache);
|
||||||
mb->cache_used = next_cidx;
|
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)
|
static int request_frame(AVFilterLink *link)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user