summaryrefslogtreecommitdiff
path: root/gst/videomixer/blend_i420.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst/videomixer/blend_i420.c')
-rw-r--r--gst/videomixer/blend_i420.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/videomixer/blend_i420.c b/gst/videomixer/blend_i420.c
index d9412a050..dcf55f3ee 100644
--- a/gst/videomixer/blend_i420.c
+++ b/gst/videomixer/blend_i420.c
@@ -209,7 +209,7 @@ gst_i420_do_blend (guint8 * src, guint8 * dest,
return;
}
- b_alpha = (gint) (src_alpha * 255);
+ b_alpha = CLAMP ((gint) (src_alpha * 255), 0, 255);
for (i = 0; i < src_height; i++) {
for (j = 0; j < src_width; j++) {