diff --git a/libavcodec/qdrw.c b/libavcodec/qdrw.c index b7a7cf5f1d..ffc9ffde71 100644 --- a/libavcodec/qdrw.c +++ b/libavcodec/qdrw.c @@ -61,7 +61,7 @@ static int parse_palette(AVCodecContext *avctx, GetByteContext *gbc, bytestream2_skip(gbc, 1); b = bytestream2_get_byte(gbc); bytestream2_skip(gbc, 1); - pal[idx] = 0xFFU << 24 | r << 16 | g << 8 | b; + pal[idx] = (0xFFU << 24) | (r << 16) | (g << 8) | b; } return 0; }