From a5dfedd3814f742a0e7f0bf3112f664f3c5649bd Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 19 Nov 2011 22:22:21 +0100 Subject: [PATCH] vsrc_mandelbrot: detect edges in interpol() Signed-off-by: Michael Niedermayer --- libavfilter/vsrc_mandelbrot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/vsrc_mandelbrot.c b/libavfilter/vsrc_mandelbrot.c index 10e010faa6..629fae1b69 100644 --- a/libavfilter/vsrc_mandelbrot.c +++ b/libavfilter/vsrc_mandelbrot.c @@ -252,6 +252,8 @@ static int interpol(MBContext *mb, uint32_t *color, int x, int y, int linesize) int ipolcd= (cc + dc); if(FFABS(ipolab - ipolcd) > 5) return 0; + if(FFABS(ac-bc)+FFABS(cc-dc) > 20) + return 0; ipol |= ((ipolab + ipolcd + 2)/4)<