1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

swscale/output: fix signed integer overflow for ya16

Fixes #7666.
This commit is contained in:
Paul B Mahol 2019-09-26 15:55:03 +02:00
parent 646799b42f
commit 21838cad2f

View File

@ -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++)