Browse Source

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.
tags/n1.1
Matthieu Bouron Nicolas George 12 years ago
parent
commit
be0a67bd65
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      libavfilter/drawutils.c

+ 0
- 1
libavfilter/drawutils.c View File

@@ -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;


Loading…
Cancel
Save