summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-07-13 17:24:42 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-07-13 17:24:42 +0000
commit2d7dbaa10fbdb7cc7985418cc71ae5c775c0a0fe (patch)
tree1126622054549852c4ae7566ad8c779c37d44423 /libmpdemux
parente20ffdf5b682457fa0aadba61c1719e21accd8f0 (diff)
downloadmpv-2d7dbaa10fbdb7cc7985418cc71ae5c775c0a0fe.tar.bz2
mpv-2d7dbaa10fbdb7cc7985418cc71ae5c775c0a0fe.tar.xz
(hopefully) fixing remaining float endianness problems
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15977 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/ebml.c3
-rw-r--r--libmpdemux/nuppelvideo.h7
2 files changed, 4 insertions, 6 deletions
diff --git a/libmpdemux/ebml.c b/libmpdemux/ebml.c
index 952a3894a5..89da629288 100644
--- a/libmpdemux/ebml.c
+++ b/libmpdemux/ebml.c
@@ -12,6 +12,7 @@
#include "stream.h"
#include "ebml.h"
+#include "bswap.h"
/*
@@ -194,7 +195,7 @@ ebml_read_float (stream_t *s, uint64_t *length)
union {uint8_t data[10]; long double ld;} u;
if (stream_read (s, u.data, 10) != 10)
return EBML_FLOAT_INVALID;
- value = u.ld;
+ value = be2me_ldbl(u.ld);
break;
}
diff --git a/libmpdemux/nuppelvideo.h b/libmpdemux/nuppelvideo.h
index 44c63384d5..0f89b0c6f2 100644
--- a/libmpdemux/nuppelvideo.h
+++ b/libmpdemux/nuppelvideo.h
@@ -92,12 +92,13 @@ typedef struct audbuffertype
unsigned char *buffer_offset;
} audbuffertyp;
-#ifdef WORDS_BIGENDIAN
#define le2me_rtfileheader(h) { \
(h)->width = le2me_32((h)->width); \
(h)->height = le2me_32((h)->height); \
(h)->desiredwidth = le2me_32((h)->desiredwidth); \
(h)->desiredheight = le2me_32((h)->desiredheight); \
+ (h)->aspect = le2me_dbl((h)->aspect); \
+ (h)->fps = le2me_dbl((h)->fps); \
(h)->videoblocks = le2me_32((h)->videoblocks); \
(h)->audioblocks = le2me_32((h)->audioblocks); \
(h)->textsblocks = le2me_32((h)->textsblocks); \
@@ -107,8 +108,4 @@ typedef struct audbuffertype
(h)->timecode = le2me_32((h)->timecode); \
(h)->packetlength = le2me_32((h)->packetlength); \
}
-#else
-#define le2me_rtfileheader(h) /**/
-#define le2me_rtframeheader(h) /**/
-#endif