diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-02-28 18:21:31 -0800 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-02-29 11:19:03 -0800 |
commit | 791de61bbb0d2bceb1037597b310e2a4a94494fd (patch) | |
tree | 958091f9b8986cd3d3d076cff236d5e4b9d6c2eb /libswscale/utils.c | |
parent | 85b221e4d3e7f42cfcf4a491b357b137f731e9d6 (diff) | |
download | ffmpeg-791de61bbb0d2bceb1037597b310e2a4a94494fd.tar.gz |
swscale: fix another integer overflow.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
Diffstat (limited to 'libswscale/utils.c')
-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 3b488ca44f..7c89a70953 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1014,7 +1014,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)); |