gst-plugins-good: videobox: avoid wrapping opaque to transparent
Vincent Penquerc'h
vincent at kemper.freedesktop.org
Sat Jan 28 15:36:52 PST 2012
Module: gst-plugins-good
Branch: master
Commit: e967e27c36ade86dd4afe5b4f452b0e46a404184
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=e967e27c36ade86dd4afe5b4f452b0e46a404184
Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date: Sat Jan 28 13:05:09 2012 +0000
videobox: avoid wrapping opaque to transparent
---
gst/videobox/gstvideobox.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gst/videobox/gstvideobox.c b/gst/videobox/gstvideobox.c
index 9d31184..213aa9e 100644
--- a/gst/videobox/gstvideobox.c
+++ b/gst/videobox/gstvideobox.c
@@ -3274,8 +3274,8 @@ static void
gst_video_box_process (GstVideoBox * video_box, const guint8 * src,
guint8 * dest)
{
- guint b_alpha = CLAMP (video_box->border_alpha * 256, 0, 256);
- guint i_alpha = CLAMP (video_box->alpha * 256, 0, 256);
+ guint b_alpha = CLAMP (video_box->border_alpha * 256, 0, 255);
+ guint i_alpha = CLAMP (video_box->alpha * 256, 0, 255);
GstVideoBoxFill fill_type = video_box->fill_type;
gint br, bl, bt, bb, crop_w, crop_h;
More information about the gstreamer-commits
mailing list