changeset 27438:29548d0a768a

fix for alignment problem on older ARM cores patch by Siarhei Siamashka, siarhei.siamashka gmail com
author diego
date Sun, 17 Aug 2008 22:32:30 +0000
parents c755245032e7
children 1bbfa128dc71
files liba52/bitstream.h liba52/liba52_changes.diff
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/liba52/bitstream.h	Sun Aug 17 22:02:05 2008 +0000
+++ b/liba52/bitstream.h	Sun Aug 17 22:32:30 2008 +0000
@@ -43,7 +43,7 @@
 #define ALT_BITSTREAM_READER
 
 /* used to avoid misaligned exceptions on some archs (alpha, ...) */
-#if defined (ARCH_X86) || defined(ARCH_ARMV4L)
+#if defined (ARCH_X86) || defined(HAVE_ARMV6)
 #    define unaligned32(a) (*(uint32_t*)(a))
 #else
 #    ifdef __GNUC__
--- a/liba52/liba52_changes.diff	Sun Aug 17 22:02:05 2008 +0000
+++ b/liba52/liba52_changes.diff	Sun Aug 17 22:32:30 2008 +0000
@@ -97,7 +97,7 @@
 +#define ALT_BITSTREAM_READER
 +
 +/* used to avoid misaligned exceptions on some archs (alpha, ...) */
-+#if defined (ARCH_X86) || defined(ARCH_ARMV4L)
++#if defined (ARCH_X86) || defined(HAVE_ARMV6)
 +#    define unaligned32(a) (*(uint32_t*)(a))
 +#else
 +#    ifdef __GNUC__