diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-06-02 18:54:37 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-06-02 18:55:24 +0000 |
commit | 20cea0c7de870d2fee6036082f202b431f49e200 (patch) | |
tree | 9939645838d1735a25da99b1be0adc602e7ba51f | |
parent | ac973926b8c77087f1d0c2bb57ba3d5c767a784e (diff) | |
download | ffmpeg-20cea0c7de870d2fee6036082f202b431f49e200.tar.gz |
avfilter/vf_blend: fix vividlight blend mode
Pointed-out-by: Rudolf Polzer
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavfilter/vf_blend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_blend.c b/libavfilter/vf_blend.c index 49711acbcb..33d3f283d6 100644 --- a/libavfilter/vf_blend.c +++ b/libavfilter/vf_blend.c @@ -214,7 +214,7 @@ DEFINE_BLEND(reflect, (B == 255) ? B : FFMIN(255, (A * A / (255 - B)))) DEFINE_BLEND(and, A & B) DEFINE_BLEND(or, A | B) DEFINE_BLEND(xor, A ^ B) -DEFINE_BLEND(vividlight, (B < 128) ? BURN(A, 2 * B) : DODGE(A, 2 * (B - 128))) +DEFINE_BLEND(vividlight, (A < 128) ? BURN(2 * A, B) : DODGE(2 * (A - 128), B)) static void blend_expr(const uint8_t *top, int top_linesize, const uint8_t *bottom, int bottom_linesize, |