diff options
author | Mans Rullgard <mans@mansr.com> | 2011-07-19 13:20:56 +0400 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-07-19 20:44:35 +0400 |
commit | 29b42c66f70ec7f8bcac87cb3cb35ec13dc0c71e (patch) | |
tree | a5a6ca1640a35db6ea5f9a0298df9333f841d979 /libavcodec/dsputil.c | |
parent | 3e9409b1d0ca6ee7063fa04d940af36a20b46a8b (diff) |
dsputil: fix ff_check_alignment()
The change to LOCAL_ALIGNED means the declared object must be an
array and the subsequent test should not use the & operator.
Noticed by Uoti Urpala.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r-- | libavcodec/dsputil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index f24985ce4c..a3e8d6cd95 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -2823,9 +2823,9 @@ av_cold void dsputil_static_init(void) int ff_check_alignment(void){ static int did_fail=0; - LOCAL_ALIGNED_16(int, aligned); + LOCAL_ALIGNED_16(int, aligned, [4]); - if((intptr_t)&aligned & 15){ + if((intptr_t)aligned & 15){ if(!did_fail){ #if HAVE_MMX || HAVE_ALTIVEC av_log(NULL, AV_LOG_ERROR, |