[Mplayer-cvslog] CVS: main/liba52 bitstream.h,1.3,1.4
Jürgen Keil
jkeil at mplayerhq.hu
Tue Sep 3 19:15:17 CEST 2002
Update of /cvsroot/mplayer/main/liba52
In directory mail:/var/tmp.root/cvs-serv11634
Modified Files:
bitstream.h
Log Message:
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.
Index: bitstream.h
===================================================================
RCS file: /cvsroot/mplayer/main/liba52/bitstream.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- bitstream.h 8 Jan 2002 14:49:17 -0000 1.3
+++ bitstream.h 3 Sep 2002 17:15:08 -0000 1.4
@@ -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
More information about the MPlayer-cvslog
mailing list