summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-03-11 15:40:28 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-11 15:40:28 +0100
commitfa74058dd36413aaa24c7e5982c66882d9dda6c1 (patch)
tree93c975d09b3c6cadb36c46d9894c8924d7d8bff8 /libswscale
parentbd4c4c868c37c7495216422e17c8b9c8e8a74c4a (diff)
downloadffmpeg-streaming-fa74058dd36413aaa24c7e5982c66882d9dda6c1.zip
ffmpeg-streaming-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>
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c
index df8d0a9..fd0247d 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;
OpenPOWER on IntegriCloud