diff options
author | Sean McGovern <gseanmcg@gmail.com> | 2011-09-19 21:32:09 -0400 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2011-09-23 17:02:58 -0700 |
commit | c2d3f561072132044114588a5f56b8e1974a2af7 (patch) | |
tree | b44947275bb59573a57b63f0bb40ff1b2fac7d1d /libavcodec/x86/fft_sse.c | |
parent | 9fba8ebe0acdc28193d37b5e1f4c0d73c589ede2 (diff) | |
download | ffmpeg-c2d3f561072132044114588a5f56b8e1974a2af7.tar.gz |
fft: avoid a signed overflow
As a signed integer, 1<<31 overflows, so force it to unsigned.
Signed-off-by: Alex Converse <alex.converse@gmail.com>
Diffstat (limited to 'libavcodec/x86/fft_sse.c')
-rw-r--r-- | libavcodec/x86/fft_sse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/x86/fft_sse.c b/libavcodec/x86/fft_sse.c index add20dd5b2..6be5be9611 100644 --- a/libavcodec/x86/fft_sse.c +++ b/libavcodec/x86/fft_sse.c @@ -24,8 +24,8 @@ #include "fft.h" #include "config.h" -DECLARE_ASM_CONST(16, int, ff_m1m1m1m1)[4] = - { 1 << 31, 1 << 31, 1 << 31, 1 << 31 }; +DECLARE_ASM_CONST(16, unsigned int, ff_m1m1m1m1)[4] = + { 1U << 31, 1U << 31, 1U << 31, 1U << 31 }; void ff_fft_dispatch_sse(FFTComplex *z, int nbits); void ff_fft_dispatch_interleave_sse(FFTComplex *z, int nbits); |