mirror of https://git.ffmpeg.org/ffmpeg.git
v410enc: fix undefined signed left shift caused by integer promotion
This commit is contained in:
parent
302371c055
commit
264808219d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue