summaryrefslogtreecommitdiff
path: root/libavcodec/dpxenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-15 12:15:21 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-15 12:15:21 +0200
commita9cadacdd982c8a8a008d208455a20a8a19431bc (patch)
tree32023c176e3671fa06316ce313c2bd20f39fb0e2 /libavcodec/dpxenc.c
parente003413fe969185a004e9c0b6c1dceb71ce70ccf (diff)
dpxenc: dont shift into the sign bit.
Fixes IOC warnings Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dpxenc.c')
-rw-r--r--libavcodec/dpxenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dpxenc.c b/libavcodec/dpxenc.c
index aaaa15babf..0a4662d78a 100644
--- a/libavcodec/dpxenc.c
+++ b/libavcodec/dpxenc.c
@@ -114,11 +114,11 @@ static void encode_gbrp10(AVCodecContext *avctx, const AVPicture *pic, uint8_t *
if (s->big_endian) {
value = (AV_RB16(src[0] + 2*x) << 12)
| (AV_RB16(src[1] + 2*x) << 2)
- | (AV_RB16(src[2] + 2*x) << 22);
+ | ((unsigned)AV_RB16(src[2] + 2*x) << 22);
} else {
value = (AV_RL16(src[0] + 2*x) << 12)
| (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);
dst += 4;