diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-14 03:17:13 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-14 03:26:31 +0200 |
commit | b12d92efd6c0d48665383a9baecc13e7ebbd8a22 (patch) | |
tree | 2e1493948ffac773901d9d737fd0cd8b468d02f8 /libavcodec/rl2.c | |
parent | d3d715ff134555570d7e2c2aa15aad50f6c6fdbd (diff) | |
download | ffmpeg-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/rl2.c')
-rw-r--r-- | libavcodec/rl2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rl2.c b/libavcodec/rl2.c index 96041a6d55..5cffd52901 100644 --- a/libavcodec/rl2.c +++ b/libavcodec/rl2.c @@ -154,7 +154,7 @@ static av_cold int rl2_decode_init(AVCodecContext *avctx) /** initialize palette */ for(i=0;i<AVPALETTE_COUNT;i++) - s->palette[i] = 0xFF << 24 | AV_RB24(&avctx->extradata[6 + i * 3]); + s->palette[i] = 0xFFU << 24 | AV_RB24(&avctx->extradata[6 + i * 3]); /** decode background frame if present */ back_size = avctx->extradata_size - EXTRADATA1_SIZE; |