Commit a9cadacd authored by Michael Niedermayer's avatar Michael Niedermayer

dpxenc: dont shift into the sign bit.

Fixes IOC warnings
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e003413f
...@@ -114,11 +114,11 @@ static void encode_gbrp10(AVCodecContext *avctx, const AVPicture *pic, uint8_t * ...@@ -114,11 +114,11 @@ static void encode_gbrp10(AVCodecContext *avctx, const AVPicture *pic, uint8_t *
if (s->big_endian) { if (s->big_endian) {
value = (AV_RB16(src[0] + 2*x) << 12) value = (AV_RB16(src[0] + 2*x) << 12)
| (AV_RB16(src[1] + 2*x) << 2) | (AV_RB16(src[1] + 2*x) << 2)
| (AV_RB16(src[2] + 2*x) << 22); | ((unsigned)AV_RB16(src[2] + 2*x) << 22);
} else { } else {
value = (AV_RL16(src[0] + 2*x) << 12) value = (AV_RL16(src[0] + 2*x) << 12)
| (AV_RL16(src[1] + 2*x) << 2) | (AV_RL16(src[1] + 2*x) << 2)
| (AV_RL16(src[2] + 2*x) << 22); | ((unsigned)AV_RL16(src[2] + 2*x) << 22);
} }
write32(dst, value); write32(dst, value);
dst += 4; dst += 4;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment