mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 10:41:04 +00:00
videoscale: prevent implicit upgrade to integer type and sign extension
This commit is contained in:
parent
656423bd65
commit
e82ff60a4c
1 changed files with 2 additions and 2 deletions
|
@ -394,8 +394,8 @@ vs_fill_borders_AYUV64 (const VSImage * dest, const uint8_t * val)
|
|||
uint8_t *data;
|
||||
uint64_t v;
|
||||
|
||||
v = (val[0] << 8) | (val[1] << 24) | (((guint64) val[2]) << 40) | (((guint64)
|
||||
val[3]) << 56);
|
||||
v = (((guint32) val[0]) << 8) | (((guint32) val[1]) << 24) |
|
||||
(((guint64) val[2]) << 40) | (((guint64) val[3]) << 56);
|
||||
|
||||
data = dest->real_pixels;
|
||||
for (i = 0; i < top; i++) {
|
||||
|
|
Loading…
Reference in a new issue