Browse Source

swscale/output: fix signed integer overflow for ya16

Fixes #7666.
tags/n4.3
Paul B Mahol 6 years ago
parent
commit
21838cad2f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libswscale/output.c

+ 1
- 1
libswscale/output.c 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++)


Loading…
Cancel
Save