comparison 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
comparison
equal deleted inserted replaced
14895:7515d2e33076 14896:9ddae5897422
88 int freeToEncode; 88 int freeToEncode;
89 int freeToBuffer; 89 int freeToBuffer;
90 unsigned char *buffer_offset; 90 unsigned char *buffer_offset;
91 } audbuffertyp; 91 } audbuffertyp;
92 92
93 #ifdef WORDS_BIGENDIAN
94 #define le2me_rtfileheader(h) { \
95 (h)->width = le2me_32((h)->width); \
96 (h)->height = le2me_32((h)->height); \
97 (h)->desiredwidth = le2me_32((h)->desiredwidth); \
98 (h)->desiredheight = le2me_32((h)->desiredheight); \
99 (h)->videoblocks = le2me_32((h)->videoblocks); \
100 (h)->audioblocks = le2me_32((h)->audioblocks); \
101 (h)->textsblocks = le2me_32((h)->textsblocks); \
102 (h)->keyframedist = le2me_32((h)->keyframedist); \
103 }
104 #define le2me_rtframeheader(h) { \
105 (h)->timecode = le2me_32((h)->timecode); \
106 (h)->packetlength = le2me_32((h)->packetlength); \
107 }
108 #else
109 #define le2me_rtfileheader(h) /**/
110 #define le2me_rtframeheader(h) /**/
111 #endif
112