mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-03 06:27:44 +08:00
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>
This commit is contained in:
@ -2823,9 +2823,9 @@ av_cold void dsputil_static_init(void)
|
|||||||
|
|
||||||
int ff_check_alignment(void){
|
int ff_check_alignment(void){
|
||||||
static int did_fail=0;
|
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(!did_fail){
|
||||||
#if HAVE_MMX || HAVE_ALTIVEC
|
#if HAVE_MMX || HAVE_ALTIVEC
|
||||||
av_log(NULL, AV_LOG_ERROR,
|
av_log(NULL, AV_LOG_ERROR,
|
||||||
|
Reference in New Issue
Block a user