On Tue, Apr 22, 2014 at 10:44 PM, Derek Buitenhuis <[email protected]> wrote: > Signed-off-by: Derek Buitenhuis <[email protected]> > --- > libavcodec/fic.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/fic.c b/libavcodec/fic.c > index f5a2ffe..0f9f798 100644 > --- a/libavcodec/fic.c > +++ b/libavcodec/fic.c > @@ -195,7 +195,7 @@ static av_always_inline void fic_alpha_blend(uint8_t > *dst, uint8_t *src, > int i; > > for (i = 0; i < size; i++) > - dst[i] = (dst[i] * (256 - alpha[i]) + src[i] * alpha[i]) >> 8; > + dst[i] += ((src[i] - dst[i]) * alpha[i]) >> 8; > } > > static void fic_draw_cursor(AVCodecContext *avctx, int cur_x, int cur_y) > -- > 1.9.2 >
Looks OK. _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
