[FFmpeg-cvslog] r21262 - trunk/libavutil/pixfmt.h

reimar subversion
Sun Jan 17 15:17:04 CET 2010


Author: reimar
Date: Sun Jan 17 15:17:03 2010
New Revision: 21262

Log:
Make sure we do not export incorrect _NE pixformat descriptions by either
including config.h if available or not defining them if it isn't.

Modified:
   trunk/libavutil/pixfmt.h

Modified: trunk/libavutil/pixfmt.h
==============================================================================
--- trunk/libavutil/pixfmt.h	Sun Jan 17 14:39:34 2010	(r21261)
+++ trunk/libavutil/pixfmt.h	Sun Jan 17 15:17:03 2010	(r21262)
@@ -127,6 +127,8 @@ enum PixelFormat {
     PIX_FMT_NB,        ///< number of pixel formats, DO NOT USE THIS if you want to link with shared libav* because the number of formats might differ between versions
 };
 
+#ifdef HAVE_AV_CONFIG_H
+#include "config.h"
 #if HAVE_BIGENDIAN
 #   define PIX_FMT_NE(be, le) PIX_FMT_##be
 #else
@@ -148,5 +150,6 @@ enum PixelFormat {
 #define PIX_FMT_YUV420P16 PIX_FMT_NE(YUV420P16BE, YUV420P16LE)
 #define PIX_FMT_YUV422P16 PIX_FMT_NE(YUV422P16BE, YUV422P16LE)
 #define PIX_FMT_YUV444P16 PIX_FMT_NE(YUV444P16BE, YUV444P16LE)
+#endif
 
 #endif /* AVUTIL_PIXFMT_H */



More information about the ffmpeg-cvslog mailing list