diff options
author | 2001-07-12 15:35:52 +0000 | |
---|---|---|
committer | 2001-07-12 15:35:52 +0000 | |
commit | 45c97f82942528378393d1819eafbcfb351bc60d (patch) | |
tree | 5e6a3ddfc4efdedb81f545b2b3adf3681aadcf50 /demuxer.h | |
parent | 82eac1391ac173cb1723f8bd8dd5e6caa94a66a8 (diff) |
Add some preliminary support for non-x86 architectures to mplayer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1310 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'demuxer.h')
-rw-r--r-- | demuxer.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,4 +1,6 @@ +#include "config.h" + #define MAX_PACKS 4096 #define MAX_PACK_BYTES 0x800000 @@ -143,7 +145,11 @@ int ds_get_packet_sub(demux_stream_t *ds,unsigned char **start); static inline int avi_stream_id(unsigned int id){ unsigned char *p=(unsigned char *)&id; unsigned char a,b; +#if WORDS_BIGENDIAN + a=p[3]-'0'; b=p[2]-'0'; +#else a=p[0]-'0'; b=p[1]-'0'; +#endif if(a>9 || b>9) return 100; // invalid ID return a*10+b; } |