# HG changeset patch # User jkeil # Date 1031073308 0 # Node ID 34b5a0b125587651f427a629e826f3d8f10cd86c # Parent fed038dd80eae11e60bfc36f0abcb9a664ae4441 The ALT_BITSTREAM_READER code does not work on SPARC, because the code accesses 32-bit works from unaligned addresses. For now, disable ALT_BITSTREAM_READER on SPARC. diff -r fed038dd80ea -r 34b5a0b12558 liba52/bitstream.h --- a/liba52/bitstream.h Tue Sep 03 17:13:08 2002 +0000 +++ b/liba52/bitstream.h Tue Sep 03 17:15:08 2002 +0000 @@ -21,8 +21,16 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#ifdef __sparc__ +/* + * the alt bitstream reader performs unaligned memory accesses; that doesn't work + * on sparc. For now, disable ALT_BITSTREAM_READER. + */ +#undef ALT_BITSTREAM_READER +#else // alternative (faster) bitstram reader (reades upto 3 bytes over the end of the input) #define ALT_BITSTREAM_READER +#endif /* (stolen from the kernel) */ #ifdef WORDS_BIGENDIAN