Commit 21838cad authored by Paul B Mahol's avatar Paul B Mahol

swscale/output: fix signed integer overflow for ya16

Fixes #7666.
parent 646799b4
......@@ -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++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment