video-convert: fix clamping for 16 bits alpha mult

This commit is contained in:
Wim Taymans 2015-03-19 12:42:23 +01:00
parent 5d456c7adc
commit 9f0b9eeb58

View file

@ -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);
}
}