Browse Source

dpxenc: dont shift into the sign bit.

Fixes IOC warnings

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
a9cadacdd9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/dpxenc.c

+ 2
- 2
libavcodec/dpxenc.c View File

@@ -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;


Loading…
Cancel
Save