diff options
author | Janne Grunau <janne-libav@jannau.net> | 2012-02-03 12:06:37 +0100 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-02-21 16:01:31 +0100 |
commit | 6a4cf065c763a640f9180e3e675f82b4320320e8 (patch) | |
tree | 6df181d26ddeb5b2b08e8eaef1fd90a35885afd5 /libavcodec/dvbsubdec.c | |
parent | ca085e667b998b7ceff276290f34fd4188438787 (diff) | |
download | ffmpeg-6a4cf065c763a640f9180e3e675f82b4320320e8.tar.gz |
dvbsubdec: avoid undefined signed left shift in RGBA macro
Diffstat (limited to 'libavcodec/dvbsubdec.c')
-rw-r--r-- | libavcodec/dvbsubdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c index aafc046d97..34c247c910 100644 --- a/libavcodec/dvbsubdec.c +++ b/libavcodec/dvbsubdec.c @@ -150,7 +150,7 @@ static void png_save2(const char *filename, uint32_t *bitmap, int w, int h) } #endif -#define RGBA(r,g,b,a) (((a) << 24) | ((r) << 16) | ((g) << 8) | (b)) +#define RGBA(r,g,b,a) (((unsigned)(a) << 24) | ((r) << 16) | ((g) << 8) | (b)) typedef struct DVBSubCLUT { int id; |