[Mplayer-cvslog] CVS: main/libavcodec common.c,1.3,1.4
Jürgen Keil
jkeil at mplayer.dev.hu
Thu Jul 12 17:35:54 CEST 2001
Update of /cvsroot/mplayer/main/libavcodec
In directory mplayer:/var/tmp.root/cvs-serv21650/libavcodec
Modified Files:
common.c
Log Message:
Add some preliminary support for non-x86 architectures to mplayer
Index: common.c
===================================================================
RCS file: /cvsroot/mplayer/main/libavcodec/common.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- common.c 9 Jul 2001 08:33:44 -0000 1.3
+++ common.c 12 Jul 2001 15:35:51 -0000 1.4
@@ -223,7 +223,14 @@
buf_ptr += 4;
/* handle common case: we can read everything */
if (buf_ptr <= s->buf_end) {
+#if ARCH_X86
bit_buf = bswap_32(*((unsigned long*)(&buf_ptr[-4])));
+#else
+ bit_buf = (buf_ptr[-4] << 24) |
+ (buf_ptr[-3] << 16) |
+ (buf_ptr[-2] << 8) |
+ (buf_ptr[-1]);
+#endif
} else {
buf_ptr -= 4;
bit_buf = 0;
More information about the MPlayer-cvslog
mailing list