[FFmpeg-cvslog] dvbsubdec: avoid undefined signed left shift in RGBA macro
Janne Grunau
git at videolan.org
Wed Feb 22 03:01:50 CET 2012
ffmpeg | branch: master | Janne Grunau <janne-libav at jannau.net> | Fri Feb 3 12:06:37 2012 +0100| [6a4cf065c763a640f9180e3e675f82b4320320e8] | committer: Janne Grunau
dvbsubdec: avoid undefined signed left shift in RGBA macro
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6a4cf065c763a640f9180e3e675f82b4320320e8
---
libavcodec/dvbsubdec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/dvbsubdec.c b/libavcodec/dvbsubdec.c
index aafc046..34c247c 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;
More information about the ffmpeg-cvslog
mailing list