[FFmpeg-cvslog] r15619 - trunk/libavutil/common.h
benoit
subversion
Wed Oct 15 09:24:55 CEST 2008
Author: benoit
Date: Wed Oct 15 09:24:54 2008
New Revision: 15619
Log:
Add a macro to get the number of element in a table.
Modified:
trunk/libavutil/common.h
Modified: trunk/libavutil/common.h
==============================================================================
--- trunk/libavutil/common.h (original)
+++ trunk/libavutil/common.h Wed Oct 15 09:24:54 2008
@@ -116,6 +116,7 @@
#define FFMIN3(a,b,c) FFMIN(FFMIN(a,b),c)
#define FFSWAP(type,a,b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0)
+#define FF_ARRAY_ELEMS(a) (sizeof(a) / sizeof((a)[0]))
/* misc math functions */
extern const uint8_t ff_log2_tab[256];
More information about the ffmpeg-cvslog
mailing list