[MPlayer-dev-eng] [PATCH] big-endian fixes in postproc/

Romain Dolbeau dolbeau at irisa.fr
Sun May 2 15:52:00 CEST 2004


Michael Niedermayer wrote:

> small question, why 
> #if defined(WORDS_BIGENDIAN) && (WORDS_BIGENDIAN == 1)
> and not
> #ifdef WORDS_BIGENDIAN
> 
> ??

Habits. config.h is like this:

#define WORDS_BIGENDIAN 1

With me, that means that WORDS_BIGENDIAN could be
defined as something else (say, 0 :-), and it's the
value that's important, not the definition. So I added
the obvious check w/o thinking further :-) Of course,
mplayer habits are likely to be different...

-- 
Romain Dolbeau




More information about the MPlayer-dev-eng mailing list