Skip to content
Snippets Groups Projects
Commit fdd5c48e authored by Vittorio Giovara's avatar Vittorio Giovara
Browse files

texturedsp: Explicitly cast RGBA parameters to unsigned


Silences warnings when using -Wshift-overflow (GCC 6+).
Found-by: default avatarJames Almer <jamrial@gmail.com>
parent eef38316
No related branches found
No related tags found
No related merge requests found
...@@ -31,7 +31,10 @@ ...@@ -31,7 +31,10 @@
#include "texturedsp.h" #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], static av_always_inline void extract_color(uint32_t colors[4],
uint16_t color0, uint16_t color0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment