vf_mandelbrot: give all av_log a context
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 23 Nov 2012 17:05:16 +0000 (18:05 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 23 Nov 2012 17:05:16 +0000 (18:05 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vsrc_mandelbrot.c

index 68a9cf7..4d08890 100644 (file)
@@ -376,7 +376,7 @@ 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");
+        av_log(ctx, AV_LOG_INFO, "Mandelbrot cache is too small!\n");
 }
 
 static int request_frame(AVFilterLink *link)