From 3d21da3186f408bccdc4d80ea6f64774640d01f0 Mon Sep 17 00:00:00 2001 From: jkeil Date: Tue, 3 Sep 2002 17:15:08 +0000 Subject: 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. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7256 b3059339-0415-0410-9bf9-f77b7e298cf2 --- liba52/bitstream.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'liba52') diff --git a/liba52/bitstream.h b/liba52/bitstream.h index 5e42904b5f..66ed3fc1c7 100644 --- a/liba52/bitstream.h +++ b/liba52/bitstream.h @@ -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 -- cgit v1.2.3