[MPlayer-cvslog] CVS: main/libmpdemux ebml.c,1.3,1.4

Reimar Döffinger CVS syncmail at mplayerhq.hu
Thu Jan 13 22:56:09 CET 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv17731

Modified Files:
	ebml.c 
Log Message:
100l, no endian conversion on floats!


Index: ebml.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/ebml.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ebml.c	25 Aug 2004 07:52:52 -0000	1.3
+++ ebml.c	13 Jan 2005 21:56:06 -0000	1.4
@@ -177,11 +177,7 @@
       {
         uint32_t i;
         float *f;
-#ifndef WORDS_BIGENDIAN
         i = stream_read_dword (s);
-#else
-        i = stream_read_dword_le (s);
-#endif
         f = (float *) (void *) &i;
         value = *f;
         break;
@@ -191,11 +187,7 @@
       {
         uint64_t i;
         double *d;
-#ifndef WORDS_BIGENDIAN
         i = stream_read_qword (s);
-#else
-        i = stream_read_qword_le (s);
-#endif
         d = (double *) (void *) &i;
         value = *d;
         break;
@@ -204,17 +196,9 @@
     case 10:
       {
         uint8_t data[10];
-#ifdef WORDS_BIGENDIAN
-        int i = 10;
-#endif
         if (stream_read (s, data, 10) != 10)
           return EBML_FLOAT_INVALID;
-#ifndef WORDS_BIGENDIAN
         value = * (long double *) data;
-#else
-        while (i--)
-          ((uint8_t *) &value)[i] = data[9 - i];
-#endif
         break;
       }
 




More information about the MPlayer-cvslog mailing list