From be0a67bd6508ccff81570a41ebe8169e34012c66 Mon Sep 17 00:00:00 2001 From: Matthieu Bouron Date: Fri, 4 Jan 2013 22:08:11 +0100 Subject: lavfi/drawutils: fix blending computation in blend_line function If width is not alligned with hsub, background component should only be multiplied once by sub alpha component. --- libavfilter/drawutils.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libavfilter/drawutils.c') diff --git a/libavfilter/drawutils.c b/libavfilter/drawutils.c index aefd09d1ea..aebc000f4c 100644 --- a/libavfilter/drawutils.c +++ b/libavfilter/drawutils.c @@ -313,7 +313,6 @@ static void blend_line(uint8_t *dst, unsigned src, unsigned alpha, unsigned tau = 0x1010101 - alpha; int x; - src *= alpha; if (left) { unsigned suba = (left * alpha) >> hsub; *dst = (*dst * (0x1010101 - suba) + src * suba) >> 24; -- cgit v1.2.3