From 9740add317675a3722adc3e8057c4860ac579f64 Mon Sep 17 00:00:00 2001 From: ziyugao Date: Thu, 10 Oct 2024 01:25:12 +0000 Subject: [PATCH] update libswscale/swscale.c. fix ffmpeg bug Signed-off-by: ziyugao --- libswscale/swscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 7b40f49da4..0e3d63a5e2 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -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; }