Mercurial > mplayer.hg
diff libmpdemux/nuppelvideo.h @ 14896:9ddae5897422
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)
author | reimar |
---|---|
date | Thu, 03 Mar 2005 10:19:56 +0000 |
parents | 2d4f01b1a566 |
children | 6825cbde2df6 |
line wrap: on
line diff
--- a/libmpdemux/nuppelvideo.h Thu Mar 03 07:54:50 2005 +0000 +++ b/libmpdemux/nuppelvideo.h Thu Mar 03 10:19:56 2005 +0000 @@ -90,3 +90,23 @@ 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 +