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:
31d5ac1
)
videotestsrc: Fix undefined left shift
author
Edward Hervey
<edward@centricular.com>
Sat, 4 Nov 2017 11:19:46 +0000
(12:19 +0100)
committer
Edward Hervey
<bilboed@bilboed.com>
Sat, 4 Nov 2017 11:19:46 +0000
(12:19 +0100)
Cast value to target type
gst/videotestsrc/videotestsrc.c
patch
|
blob
|
history
diff --git
a/gst/videotestsrc/videotestsrc.c
b/gst/videotestsrc/videotestsrc.c
index 5e841782d264ccb7ae5d691b64d39ca4ab0416f1..e4136a02b4d2fbdc7d648b995661eb01205d7d95 100644
(file)
--- a/
gst/videotestsrc/videotestsrc.c
+++ b/
gst/videotestsrc/videotestsrc.c
@@
-1206,9
+1206,9
@@
paint_tmpline_ARGB (paintinfo * p, int x, int w)
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
value = (p->color->A << 0) | (p->color->R << 8) |
- (p->color->G << 16) | (p->color->B << 24);
+ (p->color->G << 16) | (
(guint32)
p->color->B << 24);
#else
- value = (p->color->A << 24) | (p->color->R << 16) |
+ value = (
(guint32)
p->color->A << 24) | (p->color->R << 16) |
(p->color->G << 8) | (p->color->B << 0);
#endif