diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-03-22 22:13:10 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2009-03-22 22:13:10 +0000 |
commit | 326e9eaa201007164a65baf5f48d7d4e017abde8 (patch) | |
tree | 20ff150b9805c7f54bc1651cb20ccfe477fc016d /libavcodec | |
parent | 14489074652762df3b2882ac29784e5d8addd9d4 (diff) | |
download | ffmpeg-326e9eaa201007164a65baf5f48d7d4e017abde8.tar.gz |
Factorize: use the X_NE() macro in avcodec_get_pix_fmt().
Originally committed as revision 18160 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/imgconvert.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 6ce5e2638f..11427f20e9 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -507,20 +507,14 @@ static enum PixelFormat avcodec_get_pix_fmt_internal(const char *name) enum PixelFormat avcodec_get_pix_fmt(const char *name) { -#ifdef WORDS_BIGENDIAN -# define NE "be" -#else -# define NE "le" -#endif enum PixelFormat pix_fmt = avcodec_get_pix_fmt_internal(name); if (pix_fmt == PIX_FMT_NONE) { char name2[32]; - snprintf(name2, sizeof(name2), "%s%s", name, NE); + snprintf(name2, sizeof(name2), "%s%s", name, X_NE("be", "le")); pix_fmt = avcodec_get_pix_fmt_internal(name2); } return pix_fmt; -#undef NE } void avcodec_pix_fmt_string (char *buf, int buf_size, enum PixelFormat pix_fmt) |