aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dxa.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-14 03:17:13 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-14 03:26:31 +0200
commitb12d92efd6c0d48665383a9baecc13e7ebbd8a22 (patch)
tree2e1493948ffac773901d9d737fd0cd8b468d02f8 /libavcodec/dxa.c
parentd3d715ff134555570d7e2c2aa15aad50f6c6fdbd (diff)
downloadffmpeg-b12d92efd6c0d48665383a9baecc13e7ebbd8a22.tar.gz
avoid "0xFF << 24" as it is considered a integer overflow in C99
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dxa.c')
-rw-r--r--libavcodec/dxa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dxa.c b/libavcodec/dxa.c
index 215519573e..13b63df926 100644
--- a/libavcodec/dxa.c
+++ b/libavcodec/dxa.c
@@ -209,7 +209,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
r = *buf++;
g = *buf++;
b = *buf++;
- c->pal[i] = 0xFF << 24 | r << 16 | g << 8 | b;
+ c->pal[i] = 0xFFU << 24 | r << 16 | g << 8 | b;
}
pc = 1;
buf_size -= 768+4;