From 8199ea3b8cc5e1178e36d35f918bc579373dafb4 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini <stefano.sabatini-lala@poste.it> Date: Sun, 22 Mar 2009 22:10:36 +0000 Subject: [PATCH] Implement X_NE() macro. Originally committed as revision 18158 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/imgconvert.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 0abefbadc75..6ce5e2638fc 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 -- GitLab