OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca085e6
)
dvbsubdec: avoid undefined signed left shift in RGBA macro
author
Janne Grunau
<janne-libav@jannau.net>
Fri, 3 Feb 2012 11:06:37 +0000
(12:06 +0100)
committer
Janne Grunau
<janne-libav@jannau.net>
Tue, 21 Feb 2012 15:01:31 +0000
(16:01 +0100)
libavcodec/dvbsubdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/dvbsubdec.c
b/libavcodec/dvbsubdec.c
index
aafc046
..
34c247c
100644
(file)
--- 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;