diff options
author | Matthieu Bouron <matthieu.bouron@gmail.com> | 2013-01-05 01:08:11 +0400 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2013-01-05 16:08:02 +0400 |
commit | be0a67bd6508ccff81570a41ebe8169e34012c66 (patch) | |
tree | 7c54a572cf329b1b3f755e1c4fcb96dca1b4e697 | |
parent | f27eb1b702d88f0ead83f161c835d69210aa007c (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.
-rw-r--r-- | libavfilter/drawutils.c | 1 |
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; |