History

avfilter/vf_fade: fix color fading for planar rgb

Paul B Mahol committed 6 years ago

Commit 1e6cef61 parent 06db1be1 file · +2 −2Browse files

Unified · Split

libavfilter/vf_fade.c+2−2
@@ -221,8 +221,8 @@ static av_always_inline void filter_rgb_planar(FadeContext *s, const AVFrame *fr · 220 unmodified lines
221221 uint8_t *pa = frame->data[3] + i * frame->linesize[3];
222222 for (j = 0; j < frame->width; j++) {
223223 #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)
224− pr[j] = INTERPP(pr[j], 1);
225− pg[j] = INTERPP(pg[j], 0);
224+ pr[j] = INTERPP(pr[j], 0);
225+ pg[j] = INTERPP(pg[j], 1);
226226 pb[j] = INTERPP(pb[j], 2);
227227 if (do_alpha)
228228 pa[j] = INTERPP(pa[j], 3);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t