summaryrefslogtreecommitdiff
path: root/libavcodec/texturedsp.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2015-07-24 22:12:39 -0300
committerJames Almer <jamrial@gmail.com>2015-07-26 00:40:17 -0300
commitec7f04c13a6e6e483cc86e576aff7700e42cd59e (patch)
treef5c27843c563d6768937b7eaa6f4d4825b82def3 /libavcodec/texturedsp.c
parentc3361b3a8786f56428efb296dcc56c0f07d3b123 (diff)
avcodec/texturedsp: fix undefined shift
Silences warnings when using -Wshift-overflow (GCC 6+) Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/texturedsp.c')
-rw-r--r--libavcodec/texturedsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/texturedsp.c b/libavcodec/texturedsp.c
index 7a706b4463..19aa353821 100644
--- a/libavcodec/texturedsp.c
+++ b/libavcodec/texturedsp.c
@@ -425,7 +425,7 @@ static inline void rgtc_block_internal(uint8_t *dst, ptrdiff_t stride,
int i = indices[x + y * 4];
/* Interval expansion from [-1 1] or [0 1] to [0 255]. */
int c = color_tab[i];
- uint32_t pixel = RGBA(c, c, c, 255);
+ uint32_t pixel = RGBA(c, c, c, 255U);
AV_WL32(dst + x * 4 + y * stride, pixel);
}
}