diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-02-28 18:21:31 -0800 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2012-02-29 21:43:20 +0100 |
commit | 5f896773e07126dd66f5b83e604e99adb30617cb (patch) | |
tree | 4a680775ee987ccc5fd10f046a05d048d149c0b8 | |
parent | b2dcac7141a2fb72074679efbefcb4d8bef24c41 (diff) | |
download | ffmpeg-5f896773e07126dd66f5b83e604e99adb30617cb.tar.gz |
swscale: fix another integer overflow.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit 791de61bbb0d2bceb1037597b310e2a4a94494fd)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
-rw-r--r-- | libswscale/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 2d7029e2f1..51bc3842dc 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1013,7 +1013,7 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) c->vLumBufSize= c->vLumFilterSize; c->vChrBufSize= c->vChrFilterSize; for (i=0; i<dstH; i++) { - int chrI= i*c->chrDstH / dstH; + int chrI = (int64_t) i * c->chrDstH / dstH; int nextSlice= FFMAX(c->vLumFilterPos[i ] + c->vLumFilterSize - 1, ((c->vChrFilterPos[chrI] + c->vChrFilterSize - 1)<<c->chrSrcVSubSample)); |