aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/v410enc.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-01-02 15:47:26 +0100
committerJanne Grunau <janne-libav@jannau.net>2012-01-02 19:20:23 +0100
commit264808219d8be93aeda0b6ade8c64898b673f6bc (patch)
tree20ebe8f33961d4c71e69f8113e9e0002647f4f57 /libavcodec/v410enc.c
parent302371c05562d6992c6edcb72534b5f16982b659 (diff)
downloadffmpeg-264808219d8be93aeda0b6ade8c64898b673f6bc.tar.gz
v410enc: fix undefined signed left shift caused by integer promotion
Diffstat (limited to 'libavcodec/v410enc.c')
-rw-r--r--libavcodec/v410enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/v410enc.c b/libavcodec/v410enc.c
index 95b36c138e..11c6abc88e 100644
--- a/libavcodec/v410enc.c
+++ b/libavcodec/v410enc.c
@@ -67,7 +67,7 @@ static int v410_encode_frame(AVCodecContext *avctx, uint8_t *buf,
for (j = 0; j < avctx->width; j++) {
val = u[j] << 2;
val |= y[j] << 12;
- val |= v[j] << 22;
+ val |= (uint32_t) v[j] << 22;
AV_WL32(dst, val);
dst += 4;
output_size += 4;