summaryrefslogtreecommitdiffstats
path: root/libmpdemux/ebml.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-01-13 21:56:06 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-01-13 21:56:06 +0000
commit31653cb3f7d9266eceaf1989c9d0f198dddfb54e (patch)
tree31a35fadcda4c238d60213f1759fcc07ce5d2212 /libmpdemux/ebml.c
parent60e7dabb30fc3e21f213214055b9274bcefdbf21 (diff)
downloadmpv-31653cb3f7d9266eceaf1989c9d0f198dddfb54e.tar.bz2
mpv-31653cb3f7d9266eceaf1989c9d0f198dddfb54e.tar.xz
100l, no endian conversion on floats!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14491 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/ebml.c')
-rw-r--r--libmpdemux/ebml.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/libmpdemux/ebml.c b/libmpdemux/ebml.c
index ad6c2cb787..56664a2ded 100644
--- a/libmpdemux/ebml.c
+++ b/libmpdemux/ebml.c
@@ -177,11 +177,7 @@ ebml_read_float (stream_t *s, uint64_t *length)
{
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 @@ ebml_read_float (stream_t *s, uint64_t *length)
{
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 @@ ebml_read_float (stream_t *s, uint64_t *length)
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;
}