[FFmpeg-cvslog] swscale: fix another integer overflow at large dimensions/rescales.

Ronald S. Bultje git at videolan.org
Sun Feb 26 05:21:43 CET 2012


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Fri Feb 24 15:32:25 2012 -0800| [2bb628f870264455ff2573c6f56580e7c5dc8717] | committer: Ronald S. Bultje

swscale: fix another integer overflow at large dimensions/rescales.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2bb628f870264455ff2573c6f56580e7c5dc8717
---

 libswscale/utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libswscale/utils.c b/libswscale/utils.c
index 796adb6..3b488ca 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -274,7 +274,7 @@ static int initFilter(int16_t **outFilter, int16_t **filterPos, int *outFilterSi
             int j;
             (*filterPos)[i]= xx;
             for (j=0; j<filterSize; j++) {
-                int64_t d= ((int64_t)FFABS((xx<<17) - xDstInSrc))<<13;
+                int64_t d= (FFABS(((int64_t)xx<<17) - xDstInSrc))<<13;
                 double floatd;
                 int64_t coeff;
 



More information about the ffmpeg-cvslog mailing list