update libswscale/swscale.c.

fix ffmpeg bug

Signed-off-by: ziyugao <gaoziyu0614@outlook.com>
This commit is contained in:
ziyugao 2024-10-10 01:25:12 +00:00 committed by Gitee
parent a44298dd8a
commit 9740add317
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -222,7 +222,7 @@ static void lumRangeFromJpeg16_c(int16_t *_dst, int width)
int i;
int32_t *dst = (int32_t *) _dst;
for (i = 0; i < width; i++)
dst[i] = (dst[i]*(14071/4) + (33561947<<4)/4)>>12;
dst[i] = ((int)(dst[i]*(14071U/4) + (33561947<<4)/4)) >> 12;
}