aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-30 15:43:08 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-01-30 16:44:00 +0100
commitd0f315ab6c7d5829f43ebbe18e1e8827dad4c46b (patch)
treed560415d73a128f27c14d819935ed923a5716255
parent3531594017bdca10f6e33a2afb65c8416d53d75e (diff)
downloadffmpeg-d0f315ab6c7d5829f43ebbe18e1e8827dad4c46b.tar.gz
avcodec/ppc/h264qpel_template: Change if DEBUG assert() to av_assert2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/ppc/h264qpel_template.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/ppc/h264qpel_template.c b/libavcodec/ppc/h264qpel_template.c
index 9a345485ba..0e5ecbd5bb 100644
--- a/libavcodec/ppc/h264qpel_template.c
+++ b/libavcodec/ppc/h264qpel_template.c
@@ -23,15 +23,12 @@
#include <unistd.h>
#endif
+#include "libavutil/avassert.h"
#include "libavutil/mem.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h"
-#ifdef DEBUG
-#define ASSERT_ALIGNED(ptr) assert(((unsigned long)ptr&0x0000000F));
-#else
-#define ASSERT_ALIGNED(ptr) ;
-#endif
+#define ASSERT_ALIGNED(ptr) av_assert2(((unsigned long)ptr&0x0000000F));
#if HAVE_BIGENDIAN
#define load_alignment(s, ali, pm2, pm1, pp0, pp1, pp2, pp3){\