Mercurial > mplayer.hg
changeset 14490:c6ac7e795262
100l, no endian conversion on floats!
author | reimar |
---|---|
date | Thu, 13 Jan 2005 21:56:06 +0000 |
parents | ca9e98e6c10b |
children | c42f1f714962 |
files | libmpdemux/ebml.c |
diffstat | 1 files changed, 0 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- 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; }