[FFmpeg-cvslog] avfilter/vf_fade: fix color fading for planar rgb
Paul B Mahol
git at videolan.org
Sun Feb 9 23:51:52 EET 2020
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Feb 9 22:50:07 2020 +0100| [1e6cef686183288a50eb4e45265a3a7f7582b1b5] | committer: Paul B Mahol
avfilter/vf_fade: fix color fading for planar rgb
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1e6cef686183288a50eb4e45265a3a7f7582b1b5
---
libavfilter/vf_fade.c | 4 ++--
1 file 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);
More information about the ffmpeg-cvslog
mailing list