summaryrefslogtreecommitdiff
path: root/libavutil/common.h
diff options
context:
space:
mode:
authorBenoit Fouet <benoit.fouet@free.fr>2008-10-15 07:24:54 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2008-10-15 07:24:54 +0000
commitac809e814e8efc825a75eb4c5c292538246e0736 (patch)
treeafc142db1282e4d5cfb0b0669007666f43707559 /libavutil/common.h
parente46a98271e7c7d651929ef8f486dcea25fcc8763 (diff)
Add a macro to get the number of elements in a table.
Originally committed as revision 15619 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/common.h')
-rw-r--r--libavutil/common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/common.h b/libavutil/common.h
index 42fe9515d5..9c78804273 100644
--- a/libavutil/common.h
+++ b/libavutil/common.h
@@ -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];