diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-03-22 22:10:36 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-03-22 22:10:36 +0000 |
commit | 8199ea3b8cc5e1178e36d35f918bc579373dafb4 (patch) | |
tree | a1fcffdda863fdb610866706bfbcc291acd73d3e /libavcodec | |
parent | e2a38af96eb1c1ee80e9f967d26f61d1e29eabdb (diff) | |
download | ffmpeg-8199ea3b8cc5e1178e36d35f918bc579373dafb4.tar.gz |
Implement X_NE() macro.
Originally committed as revision 18158 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/imgconvert.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 0abefbadc7..6ce5e2638f 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -499,6 +499,12 @@ static enum PixelFormat avcodec_get_pix_fmt_internal(const char *name) return PIX_FMT_NONE; } +#ifdef WORDS_BIGENDIAN +# define X_NE(be, le) be +#else +# define X_NE(be, le) le +#endif + enum PixelFormat avcodec_get_pix_fmt(const char *name) { #ifdef WORDS_BIGENDIAN |