[MPlayer-dev-eng] XviD codec

Chris Bednar cjb at AdvancedDataSolutions.com
Sun Jan 13 07:01:54 CET 2002


    OK, OK.... this is all I really need. I still don't know why,
but both encoding and decoding work with the latest release. 
Encoding still has some glitches...


---- ``Windows: It does that sometimes.''  -mattdm
Chris J. Bednar
Director, Distributed Computing Product Group
http://AdvancedDataSolutions.com/


diff -u -P --recursive opendivx.0/core/src/decoder/bitreader.h opendivx/core/src/decoder/bitreader.h
--- opendivx.0/core/src/decoder/bitreader.h	Thu Jan  3 13:42:56 2002
+++ opendivx/core/src/decoder/bitreader.h	Sat Jan 12 23:18:34 2002
@@ -37,13 +37,13 @@
 	bs->start = (uint32_t*)bitstream;
 
 	tmp = *(uint32_t *)bitstream;
-#ifndef BIG_ENDIAN
+#ifdef LITTLE_ENDIAN
 	BSWAP(tmp);
 #endif
 	bs->bufa = tmp;
 
 	tmp = *((uint32_t *)bitstream + 1);
-#ifndef BIG_ENDIAN
+#ifdef LITTLE_ENDIAN
 	BSWAP(tmp);
 #endif
 	bs->bufb = tmp;
@@ -89,7 +89,7 @@
 
 		bs->bufa = bs->bufb;
 		tmp = *(uint32_t *)bs->tail;
-#ifndef BIG_ENDIAN
+#ifdef LITTLE_ENDIAN
 		BSWAP(tmp);
 #endif
 		bs->bufb = tmp;






More information about the MPlayer-dev-eng mailing list