summaryrefslogtreecommitdiffstats
path: root/libmpdemux/nuppelvideo.h
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-28 19:01:04 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-28 19:01:04 +0000
commit3adbef1c80dec4ac1b01d1db896b89e192f5601e (patch)
treefafab5e58cb5c46957f82e77b513e6708d6496d5 /libmpdemux/nuppelvideo.h
parent3d14131649ba36f8e352fc6689d91de74710f08d (diff)
downloadmpv-3adbef1c80dec4ac1b01d1db896b89e192f5601e.tar.bz2
mpv-3adbef1c80dec4ac1b01d1db896b89e192f5601e.tar.xz
Use av_int2dbl to read doubles instead of our somewhat broken le2me_dbl
(le2me_dbl assumes float and int endianness are the same). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21363 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/nuppelvideo.h')
-rw-r--r--libmpdemux/nuppelvideo.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libmpdemux/nuppelvideo.h b/libmpdemux/nuppelvideo.h
index a67dd02aeb..14e72b9581 100644
--- a/libmpdemux/nuppelvideo.h
+++ b/libmpdemux/nuppelvideo.h
@@ -1,5 +1,7 @@
/* nuppelvideo.h rh */
+#include "libavutil/intfloat_readwrite.h"
+
typedef struct __attribute__((packed)) rtfileheader
{
char finfo[12]; // "NuppelVideo" + \0
@@ -125,8 +127,8 @@ typedef struct audbuffertype
(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)->aspect = av_int2dbl(le2me_64(*(uint64_t *)&(h)->aspect));\
+ (h)->fps = av_int2dbl(le2me_64(*(uint64_t *)&(h)->fps)); \
(h)->videoblocks = le2me_32((h)->videoblocks); \
(h)->audioblocks = le2me_32((h)->audioblocks); \
(h)->textsblocks = le2me_32((h)->textsblocks); \