aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/imgconvert.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-03-22 22:10:36 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-03-22 22:10:36 +0000
commit8199ea3b8cc5e1178e36d35f918bc579373dafb4 (patch)
treea1fcffdda863fdb610866706bfbcc291acd73d3e /libavcodec/imgconvert.c
parente2a38af96eb1c1ee80e9f967d26f61d1e29eabdb (diff)
downloadffmpeg-8199ea3b8cc5e1178e36d35f918bc579373dafb4.tar.gz
Implement X_NE() macro.
Originally committed as revision 18158 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/imgconvert.c')
-rw-r--r--libavcodec/imgconvert.c6
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