summaryrefslogtreecommitdiff
path: root/libavcodec/eatgv.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/eatgv.c
parentd3d715ff134555570d7e2c2aa15aad50f6c6fdbd (diff)
avoid "0xFF << 24" as it is considered a integer overflow in C99
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/eatgv.c')
-rw-r--r--libavcodec/eatgv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/eatgv.c b/libavcodec/eatgv.c
index 45f9fc774b..69e74ca2a4 100644
--- a/libavcodec/eatgv.c
+++ b/libavcodec/eatgv.c
@@ -286,7 +286,7 @@ static int tgv_decode_frame(AVCodecContext *avctx,
pal_count = AV_RL16(&buf[6]);
buf += 12;
for(i=0; i<pal_count && i<AVPALETTE_COUNT && buf_end - buf >= 3; i++) {
- s->palette[i] = 0xFF << 24 | AV_RB24(buf);
+ s->palette[i] = 0xFFU << 24 | AV_RB24(buf);
buf += 3;
}
}