mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
texturedsp: Explicitly cast RGBA parameters to unsigned
Silences warnings when using -Wshift-overflow (GCC 6+). Found-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
eef38316ca
commit
fdd5c48ebd
@ -31,7 +31,10 @@
|
||||
|
||||
#include "texturedsp.h"
|
||||
|
||||
#define RGBA(r, g, b, a) (r) | ((g) << 8) | ((b) << 16) | ((a) << 24)
|
||||
#define RGBA(r, g, b, a) ((uint8_t)(r) << 0) | \
|
||||
((uint8_t)(g) << 8) | \
|
||||
((uint8_t)(b) << 16) | \
|
||||
((uint8_t)(a) << 24)
|
||||
|
||||
static av_always_inline void extract_color(uint32_t colors[4],
|
||||
uint16_t color0,
|
||||
|
Loading…
Reference in New Issue
Block a user