summaryrefslogtreecommitdiff
path: root/libavcodec/ppc/h264qpel_template.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-10 18:08:42 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-10 18:09:39 +0200
commitd0b294286c1cd876e09c42c1091111103645df5f (patch)
tree8ac783a318a023b303eeb5c523e7569145768933 /libavcodec/ppc/h264qpel_template.c
parent07cb6bf985e2c3fba795870a23accf8d2895758f (diff)
downloadffmpeg-d0b294286c1cd876e09c42c1091111103645df5f.tar.gz
avcodec/ppc/h264qpel_template: Fix alignment assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ppc/h264qpel_template.c')
-rw-r--r--libavcodec/ppc/h264qpel_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ppc/h264qpel_template.c b/libavcodec/ppc/h264qpel_template.c
index 0e5ecbd5bb..5ff72e32f0 100644
--- a/libavcodec/ppc/h264qpel_template.c
+++ b/libavcodec/ppc/h264qpel_template.c
@@ -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){\