diff --git a/libswscale/swscale.c b/libswscale/swscale.c index df0d5708aa..8b6a3a84b4 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -224,7 +224,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; }