avoid "0xFF << 24" as it is considered a integer overflow in C99

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2012-10-14 03:17:13 +02:00
parent d3d715ff13
commit b12d92efd6
24 changed files with 29 additions and 29 deletions

View File

@@ -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;
}
}