[SCM] libav/experimental: Factorize: use the X_NE() macro in avcodec_get_pix_fmt().
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:42:24 UTC 2013
The following commit has been merged in the experimental branch:
commit 326e9eaa201007164a65baf5f48d7d4e017abde8
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date: Sun Mar 22 22:13:10 2009 +0000
Factorize: use the X_NE() macro in avcodec_get_pix_fmt().
Originally committed as revision 18160 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index 6ce5e26..11427f2 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)
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list