# HG changeset patch # User reimar # Date 1105653366 0 # Node ID c6ac7e795262c00e97c20757f08ee9e946750340 # Parent ca9e98e6c10b8a27d5ed3f18cc367b580bba0c2f 100l, no endian conversion on floats! diff -r ca9e98e6c10b -r c6ac7e795262 libmpdemux/ebml.c --- a/libmpdemux/ebml.c Thu Jan 13 21:04:34 2005 +0000 +++ b/libmpdemux/ebml.c Thu Jan 13 21:56:06 2005 +0000 @@ -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; }