diff options
author | Janne Grunau <janne-libav@jannau.net> | 2012-01-02 15:47:26 +0100 |
---|---|---|
committer | Janne Grunau <janne-libav@jannau.net> | 2012-01-02 19:20:23 +0100 |
commit | 264808219d8be93aeda0b6ade8c64898b673f6bc (patch) | |
tree | 20ebe8f33961d4c71e69f8113e9e0002647f4f57 /libavcodec/v410enc.c | |
parent | 302371c05562d6992c6edcb72534b5f16982b659 (diff) | |
download | ffmpeg-264808219d8be93aeda0b6ade8c64898b673f6bc.tar.gz |
v410enc: fix undefined signed left shift caused by integer promotion
Diffstat (limited to 'libavcodec/v410enc.c')
-rw-r--r-- | libavcodec/v410enc.c | 2 |
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; |