diff common.h @ 513:8c5bd100bb30 libavutil

Macro suggested by Michael which will be used to disable the definition of long_name strings in libavcodec and libavformat. Patch by: Stefano Sabatini, stefano.sabatini-lala poste it
author takis
date Sun, 01 Jun 2008 07:37:43 +0000
parents b35354bd6b57
children 80cd26ba5c7c
line wrap: on
line diff
--- a/common.h	Fri May 30 10:58:48 2008 +0000
+++ b/common.h	Sun Jun 01 07:37:43 2008 +0000
@@ -387,4 +387,15 @@
 #define STOP_TIMER(id) {}
 #endif
 
+/**
+ * Returns NULL if CONFIG_SMALL is defined otherwise the argument
+ * without modifications, used to disable the definition of strings
+ * (for example AVCodec long_names).
+ */
+#ifdef CONFIG_SMALL
+#   define NULL_IF_CONFIG_SMALL(x) NULL
+#else
+#   define NULL_IF_CONFIG_SMALL(x) x
+#endif
+
 #endif /* FFMPEG_COMMON_H */