v410enc: fix undefined signed left shift caused by integer promotion

This commit is contained in:
Janne Grunau 2012-01-02 15:47:26 +01:00
parent 302371c055
commit 264808219d
1 changed files with 1 additions and 1 deletions

View File

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