mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
videobox: Fix floating point to integer conversion for the alpha values
Fixes bug #619835.
This commit is contained in:
parent
64a01683ad
commit
ad9ffeed03
1 changed files with 2 additions and 2 deletions
|
@ -3269,8 +3269,8 @@ static void
|
||||||
gst_video_box_process (GstVideoBox * video_box, const guint8 * src,
|
gst_video_box_process (GstVideoBox * video_box, const guint8 * src,
|
||||||
guint8 * dest)
|
guint8 * dest)
|
||||||
{
|
{
|
||||||
guint b_alpha = CLAMP ((guint) video_box->border_alpha * 256, 0, 256);
|
guint b_alpha = CLAMP (video_box->border_alpha * 256, 0, 256);
|
||||||
guint i_alpha = CLAMP ((guint) video_box->alpha * 256, 0, 256);
|
guint i_alpha = CLAMP (video_box->alpha * 256, 0, 256);
|
||||||
GstVideoBoxFill fill_type = video_box->fill_type;
|
GstVideoBoxFill fill_type = video_box->fill_type;
|
||||||
gint br, bl, bt, bb, crop_w, crop_h;
|
gint br, bl, bt, bb, crop_w, crop_h;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue