summaryrefslogtreecommitdiff
path: root/libavfilter/drawutils.c
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@gmail.com>2013-01-04 22:08:11 +0100
committerNicolas George <nicolas.george@normalesup.org>2013-01-05 13:08:02 +0100
commitbe0a67bd6508ccff81570a41ebe8169e34012c66 (patch)
tree7c54a572cf329b1b3f755e1c4fcb96dca1b4e697 /libavfilter/drawutils.c
parentf27eb1b702d88f0ead83f161c835d69210aa007c (diff)
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.
Diffstat (limited to 'libavfilter/drawutils.c')
-rw-r--r--libavfilter/drawutils.c1
1 files changed, 0 insertions, 1 deletions
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;