aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/simple_idct_template.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-12-13 15:21:19 +0100
committerPaul B Mahol <onemda@gmail.com>2019-12-14 00:20:52 +0100
commit24424a6516f8adc4c73a2fe00fa106b0e49abafd (patch)
treea3557e71bafef89c92c168bc2d63271eca293a0c /libavcodec/simple_idct_template.c
parentbbe27890ff7e31e74d024a17123cb073720f2486 (diff)
downloadffmpeg-24424a6516f8adc4c73a2fe00fa106b0e49abafd.tar.gz
avcodec/simple_idct_template: fix integer overflow
Diffstat (limited to 'libavcodec/simple_idct_template.c')
-rw-r--r--libavcodec/simple_idct_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/simple_idct_template.c b/libavcodec/simple_idct_template.c
index d8fcfd7c53..5ddd0b45a2 100644
--- a/libavcodec/simple_idct_template.c
+++ b/libavcodec/simple_idct_template.c
@@ -121,7 +121,7 @@ static inline void FUNC6(idctRowCondDC)(idctin *row, int extra_shift)
// TODO: Add DC-only support for int32_t input
#if IN_IDCT_DEPTH == 16
#if HAVE_FAST_64BIT
-#define ROW0_MASK (0xffffLL << 48 * HAVE_BIGENDIAN)
+#define ROW0_MASK (0xffffULL << 48 * HAVE_BIGENDIAN)
if (((AV_RN64A(row) & ~ROW0_MASK) | AV_RN64A(row+4)) == 0) {
uint64_t temp;
if (DC_SHIFT - extra_shift >= 0) {