]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/ppc/h264qpel_template: Fix alignment assert
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 10 May 2015 16:08:42 +0000 (18:08 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 10 May 2015 16:09:39 +0000 (18:09 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ppc/h264qpel_template.c

index 0e5ecbd5bbda24c560ac9e54f42bdc9efc7f651f..5ff72e32f0370f9f62d21eb7d1600f3f5b43bf72 100644 (file)
@@ -28,7 +28,7 @@
 #include "libavutil/ppc/types_altivec.h"
 #include "libavutil/ppc/util_altivec.h"
 
-#define ASSERT_ALIGNED(ptr) av_assert2(((unsigned long)ptr&0x0000000F));
+#define ASSERT_ALIGNED(ptr) av_assert2(!((uintptr_t)ptr&0x0000000F));
 
 #if HAVE_BIGENDIAN
 #define load_alignment(s, ali, pm2, pm1, pp0, pp1, pp2, pp3){\