mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
s3tc: fix shift overflow by using unsigned constant
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
f7f892e4d5
commit
b02aa3a8ea
@ -28,7 +28,7 @@
|
|||||||
static inline void dxt1_decode_pixels(const uint8_t *s, uint32_t *d,
|
static inline void dxt1_decode_pixels(const uint8_t *s, uint32_t *d,
|
||||||
unsigned int qstride, unsigned int flag,
|
unsigned int qstride, unsigned int flag,
|
||||||
uint64_t alpha) {
|
uint64_t alpha) {
|
||||||
unsigned int x, y, c0, c1, a = (!flag * 255) << 24;
|
unsigned int x, y, c0, c1, a = (!flag * 255u) << 24;
|
||||||
unsigned int rb0, rb1, rb2, rb3, g0, g1, g2, g3;
|
unsigned int rb0, rb1, rb2, rb3, g0, g1, g2, g3;
|
||||||
uint32_t colors[4], pixels;
|
uint32_t colors[4], pixels;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user