summaryrefslogtreecommitdiff
path: root/libavcodec/jvdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/jvdec.c')
-rw-r--r--libavcodec/jvdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/jvdec.c b/libavcodec/jvdec.c
index cec28cceae..976ce08db2 100644
--- a/libavcodec/jvdec.c
+++ b/libavcodec/jvdec.c
@@ -177,7 +177,7 @@ static int decode_frame(AVCodecContext *avctx,
if (buf_end - buf >= AVPALETTE_COUNT * 3) {
for (i = 0; i < AVPALETTE_COUNT; i++) {
uint32_t pal = AV_RB24(buf);
- s->palette[i] = 0xFF << 24 | pal << 2 | ((pal >> 4) & 0x30303);
+ s->palette[i] = 0xFFU << 24 | pal << 2 | ((pal >> 4) & 0x30303);
buf += 3;
}
s->palette_has_changed = 1;