Mercurial > mplayer.hg
comparison libmpdemux/demuxer.h @ 29401:f01023c524c3
Replace WORDS_BIGENDIAN by HAVE_BIGENDIAN in all internal code.
author | diego |
---|---|
date | Sun, 26 Jul 2009 19:53:00 +0000 |
parents | 0f1b5b68af32 |
children | fa5a020677d6 |
comparison
equal
deleted
inserted
replaced
29400:0446f018f9fc | 29401:f01023c524c3 |
---|---|
382 stream_t* new_ds_stream(demux_stream_t *ds); | 382 stream_t* new_ds_stream(demux_stream_t *ds); |
383 | 383 |
384 static inline int avi_stream_id(unsigned int id){ | 384 static inline int avi_stream_id(unsigned int id){ |
385 unsigned char *p=(unsigned char *)&id; | 385 unsigned char *p=(unsigned char *)&id; |
386 unsigned char a,b; | 386 unsigned char a,b; |
387 #ifdef WORDS_BIGENDIAN | 387 #if HAVE_BIGENDIAN |
388 a=p[3]-'0'; b=p[2]-'0'; | 388 a=p[3]-'0'; b=p[2]-'0'; |
389 #else | 389 #else |
390 a=p[0]-'0'; b=p[1]-'0'; | 390 a=p[0]-'0'; b=p[1]-'0'; |
391 #endif | 391 #endif |
392 if(a>9 || b>9) return 100; // invalid ID | 392 if(a>9 || b>9) return 100; // invalid ID |