diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-03-11 15:40:28 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-11 15:40:28 +0100 |
commit | fa74058dd36413aaa24c7e5982c66882d9dda6c1 (patch) | |
tree | 93c975d09b3c6cadb36c46d9894c8924d7d8bff8 | |
parent | bd4c4c868c37c7495216422e17c8b9c8e8a74c4a (diff) | |
download | ffmpeg-fa74058dd36413aaa24c7e5982c66882d9dda6c1.tar.gz |
swscale/utils: Fix undefined shift in initFilter()
Found-by: Clang -fsanitize=shift
Reported-by: Thierry Foucu <tfoucu@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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 df8d0a92ca..fd0247d644 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -384,7 +384,7 @@ static av_cold int initFilter(int16_t **outFilter, int32_t **filterPos, int j; (*filterPos)[i] = xx; for (j = 0; j < filterSize; j++) { - int64_t d = (FFABS(((int64_t)xx << 17) - xDstInSrc)) << 13; + int64_t d = (FFABS(((int64_t)xx * (1 << 17)) - xDstInSrc)) << 13; double floatd; int64_t coeff; |