aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-11-19 22:22:21 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-19 22:22:21 +0100
commita5dfedd3814f742a0e7f0bf3112f664f3c5649bd (patch)
treebdc0c819bc0bc80e2250df25c26c4d4247851ad6
parent4ebbcdb3eb157100fd98b74896fb33c0fb3d2a7c (diff)
downloadffmpeg-a5dfedd3814f742a0e7f0bf3112f664f3c5649bd.tar.gz
vsrc_mandelbrot: detect edges in interpol()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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 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)<<s;
}
color[x + y*linesize]= ipol;