aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-02-09 22:50:07 +0100
committerPaul B Mahol <onemda@gmail.com>2020-02-09 22:50:07 +0100
commit1e6cef686183288a50eb4e45265a3a7f7582b1b5 (patch)
tree0c742969e9d718c9796820d4e501e2c5c30ea82a
parent06db1bef4c97d6dc69abab3f465db9e1714735c9 (diff)
downloadffmpeg-1e6cef686183288a50eb4e45265a3a7f7582b1b5.tar.gz
avfilter/vf_fade: fix color fading for planar rgb
-rw-r--r--libavfilter/vf_fade.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_fade.c b/libavfilter/vf_fade.c
index c4fb0bb058..b8e3465808 100644
--- a/libavfilter/vf_fade.c
+++ b/libavfilter/vf_fade.c
@@ -221,8 +221,8 @@ static av_always_inline void filter_rgb_planar(FadeContext *s, const AVFrame *fr
uint8_t *pa = frame->data[3] + i * frame->linesize[3];
for (j = 0; j < frame->width; j++) {
#define INTERPP(c_name, c_idx) av_clip_uint8(((c[c_idx]<<16) + ((int)c_name - (int)c[c_idx]) * s->factor + (1<<15)) >> 16)
- pr[j] = INTERPP(pr[j], 1);
- pg[j] = INTERPP(pg[j], 0);
+ pr[j] = INTERPP(pr[j], 0);
+ pg[j] = INTERPP(pg[j], 1);
pb[j] = INTERPP(pb[j], 2);
if (do_alpha)
pa[j] = INTERPP(pa[j], 3);