From 21838cad2fc44023ad85e35d5c677e2f8d29a0ef Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Thu, 26 Sep 2019 15:55:03 +0200 Subject: swscale/output: fix signed integer overflow for ya16 Fixes #7666. --- libswscale/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/output.c b/libswscale/output.c index 7eb4644..0e20a0a 100644 --- a/libswscale/output.c +++ b/libswscale/output.c @@ -904,7 +904,7 @@ yuv2ya16_X_c_template(SwsContext *c, const int16_t *lumFilter, for (i = 0; i < dstW; i++) { int j; - int Y = 1 << 18; + int64_t Y = 1 << 18; int64_t A = 0xffff<<14; for (j = 0; j < lumFilterSize; j++) -- cgit v1.1