mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
video-convert: fix clamping for 16 bits alpha mult
This commit is contained in:
parent
5d456c7adc
commit
9f0b9eeb58
1 changed files with 1 additions and 1 deletions
|
@ -1676,7 +1676,7 @@ convert_mult_alpha_u16 (GstVideoConverter * convert, gpointer pixels,
|
|||
|
||||
for (i = 0; i < width; i++) {
|
||||
gint a = (p[i * 4] * alpha) / 255;
|
||||
p[i * 4] = CLAMP (a, 0, 255);
|
||||
p[i * 4] = CLAMP (a, 0, 65535);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue