diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-03-03 10:19:56 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-03-03 10:19:56 +0000 |
commit | fd9fe9e04d56535ccbee56a7f0c5876009e56c9f (patch) | |
tree | 925f95455381bb4098ee0c0a6ad4ab2b2716dd62 /libmpdemux/nuppelvideo.h | |
parent | 3d4f1ec4833a4fcb9ce3894f033984174f788b8f (diff) | |
download | mpv-fd9fe9e04d56535ccbee56a7f0c5876009e56c9f.tar.bz2 mpv-fd9fe9e04d56535ccbee56a7f0c5876009e56c9f.tar.xz |
Make nuv files work on bigendian (but old nuv files created with mencoder
wont play anymore - before they would have worked with mplayer on be)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14897 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/nuppelvideo.h')
-rw-r--r-- | libmpdemux/nuppelvideo.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libmpdemux/nuppelvideo.h b/libmpdemux/nuppelvideo.h index 2c6d217e9a..2e9dc51562 100644 --- a/libmpdemux/nuppelvideo.h +++ b/libmpdemux/nuppelvideo.h @@ -90,3 +90,23 @@ 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)->videoblocks = le2me_32((h)->videoblocks); \ + (h)->audioblocks = le2me_32((h)->audioblocks); \ + (h)->textsblocks = le2me_32((h)->textsblocks); \ + (h)->keyframedist = le2me_32((h)->keyframedist); \ + } +#define le2me_rtframeheader(h) { \ + (h)->timecode = le2me_32((h)->timecode); \ + (h)->packetlength = le2me_32((h)->packetlength); \ + } +#else +#define le2me_rtfileheader(h) /**/ +#define le2me_rtframeheader(h) /**/ +#endif + |