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>
This commit is contained in:
parent
c3361b3a87
commit
ec7f04c13a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue