mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/vf_colorchannelmixer: do not use pointer if there is no alpha
Fixes #8288
This commit is contained in:
parent
932913f0b4
commit
4fe4772a58
@ -125,7 +125,7 @@ static av_always_inline int filter_slice_rgba_planar(AVFilterContext *ctx, void
|
|||||||
const uint8_t rin = srcr[j];
|
const uint8_t rin = srcr[j];
|
||||||
const uint8_t gin = srcg[j];
|
const uint8_t gin = srcg[j];
|
||||||
const uint8_t bin = srcb[j];
|
const uint8_t bin = srcb[j];
|
||||||
const uint8_t ain = srca[j];
|
const uint8_t ain = have_alpha ? srca[j] : 0;
|
||||||
|
|
||||||
dstr[j] = av_clip_uint8(s->lut[R][R][rin] +
|
dstr[j] = av_clip_uint8(s->lut[R][R][rin] +
|
||||||
s->lut[R][G][gin] +
|
s->lut[R][G][gin] +
|
||||||
@ -184,7 +184,7 @@ static av_always_inline int filter_slice_rgba16_planar(AVFilterContext *ctx, voi
|
|||||||
const uint16_t rin = srcr[j];
|
const uint16_t rin = srcr[j];
|
||||||
const uint16_t gin = srcg[j];
|
const uint16_t gin = srcg[j];
|
||||||
const uint16_t bin = srcb[j];
|
const uint16_t bin = srcb[j];
|
||||||
const uint16_t ain = srca[j];
|
const uint16_t ain = have_alpha ? srca[j] : 0;
|
||||||
|
|
||||||
dstr[j] = av_clip_uintp2(s->lut[R][R][rin] +
|
dstr[j] = av_clip_uintp2(s->lut[R][R][rin] +
|
||||||
s->lut[R][G][gin] +
|
s->lut[R][G][gin] +
|
||||||
|
Loading…
Reference in New Issue
Block a user