projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cf5d59
)
video-converter: Fix undefined left shift
author
Edward Hervey
<edward@centricular.com>
Sat, 4 Nov 2017 11:18:39 +0000
(12:18 +0100)
committer
Edward Hervey
<bilboed@bilboed.com>
Sat, 4 Nov 2017 11:18:39 +0000
(12:18 +0100)
Cast value to target type
gst-libs/gst/video/video-converter.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/video/video-converter.c
b/gst-libs/gst/video/video-converter.c
index
b21f9e6
..
6aacc3b
100644
(file)
--- a/
gst-libs/gst/video/video-converter.c
+++ b/
gst-libs/gst/video/video-converter.c
@@
-2175,7
+2175,7
@@
setup_borderline (GstVideoConverter * convert)
u = CLAMP (u, 0, 255);
v = CLAMP (v, 0, 255);
- border_val = a | (y << 8) | (u << 16) | (v << 24);
+ border_val = a | (y << 8) | (u << 16) | (
(guint32)
v << 24);
} else {
border_val = GINT32_FROM_BE (convert->border_argb);
}