projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7f892e
)
s3tc: fix shift overflow by using unsigned constant
author
Mans Rullgard
<mans@mansr.com>
Sat, 26 Nov 2011 16:51:44 +0000
(16:51 +0000)
committer
Mans Rullgard
<mans@mansr.com>
Sat, 26 Nov 2011 18:50:42 +0000
(18:50 +0000)
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/s3tc.c
patch
|
blob
|
history
diff --git
a/libavcodec/s3tc.c
b/libavcodec/s3tc.c
index
e8ca688
..
d0c4eb8
100644
(file)
--- a/
libavcodec/s3tc.c
+++ b/
libavcodec/s3tc.c
@@
-28,7
+28,7
@@
static inline void dxt1_decode_pixels(const uint8_t *s, uint32_t *d,
unsigned int qstride, unsigned int flag,
uint64_t alpha) {
- unsigned int x, y, c0, c1, a = (!flag * 255) << 24;
+ unsigned int x, y, c0, c1, a = (!flag * 255
u
) << 24;
unsigned int rb0, rb1, rb2, rb3, g0, g1, g2, g3;
uint32_t colors[4], pixels;