summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-09-26 15:55:03 +0200
committerPaul B Mahol <onemda@gmail.com>2019-09-26 15:56:47 +0200
commit21838cad2fc44023ad85e35d5c677e2f8d29a0ef (patch)
tree05021745671c058f6f8fd7461a8cf939ee3ea0f7
parent646799b42fd59ee79920e472795bf881b78bb5ce (diff)
downloadffmpeg-streaming-21838cad2fc44023ad85e35d5c677e2f8d29a0ef.zip
ffmpeg-streaming-21838cad2fc44023ad85e35d5c677e2f8d29a0ef.tar.gz
swscale/output: fix signed integer overflow for ya16
Fixes #7666.
-rw-r--r--libswscale/output.c2
1 files changed, 1 insertions, 1 deletions
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++)
OpenPOWER on IntegriCloud