diff --git a/libswscale/output.c b/libswscale/output.c index 86ead1fc94..ba9cda29f1 100644 --- a/libswscale/output.c +++ b/libswscale/output.c @@ -2284,7 +2284,7 @@ yuv2gbrp16_full_X_c(SwsContext *c, const int16_t *lumFilter, A = -0x40000000; for (j = 0; j < lumFilterSize; j++) - A += alpSrc[j][i] * lumFilter[j]; + A += alpSrc[j][i] * (unsigned)lumFilter[j]; A >>= 1; A += 0x20002000;