Implement X_NE() macro.

Originally committed as revision 18158 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Stefano Sabatini 16 years ago
parent e2a38af96e
commit 8199ea3b8c
  1. 6
      libavcodec/imgconvert.c

@ -499,6 +499,12 @@ static enum PixelFormat avcodec_get_pix_fmt_internal(const char *name)
return PIX_FMT_NONE; 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) enum PixelFormat avcodec_get_pix_fmt(const char *name)
{ {
#ifdef WORDS_BIGENDIAN #ifdef WORDS_BIGENDIAN

Loading…
Cancel
Save