summaryrefslogtreecommitdiffstats
path: root/liba52
diff options
context:
space:
mode:
authorjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-09-03 17:15:08 +0000
committerjkeil <jkeil@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-09-03 17:15:08 +0000
commit3d21da3186f408bccdc4d80ea6f64774640d01f0 (patch)
treea711d8ae27e3efd70d45d470f0f65bfe68a22c88 /liba52
parent4e5d0d582558f8cd4877b0113eb2fae4615d0dca (diff)
downloadmpv-3d21da3186f408bccdc4d80ea6f64774640d01f0.tar.bz2
mpv-3d21da3186f408bccdc4d80ea6f64774640d01f0.tar.xz
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
Diffstat (limited to 'liba52')
-rw-r--r--liba52/bitstream.h8
1 files changed, 8 insertions, 0 deletions
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