[FFmpeg-cvslog] avcodec/ppc/h264qpel_template: Fix alignment assert

Michael Niedermayer git at videolan.org
Sun May 10 20:12:16 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun May 10 18:08:42 2015 +0200| [d0b294286c1cd876e09c42c1091111103645df5f] | committer: Michael Niedermayer

avcodec/ppc/h264qpel_template: Fix alignment assert

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d0b294286c1cd876e09c42c1091111103645df5f
---

 libavcodec/ppc/h264qpel_template.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/ppc/h264qpel_template.c b/libavcodec/ppc/h264qpel_template.c
index 0e5ecbd..5ff72e3 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){\



More information about the ffmpeg-cvslog mailing list