Browse Source

Implement X_NE() macro.

Originally committed as revision 18158 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Stefano Sabatini 16 years ago
parent
commit
8199ea3b8c
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      libavcodec/imgconvert.c

+ 6
- 0
libavcodec/imgconvert.c View File

@@ -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