summaryrefslogtreecommitdiff
path: root/libavutil/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil/internal.h')
-rw-r--r--libavutil/internal.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavutil/internal.h b/libavutil/internal.h
index 78bfdd828a..ef1233d91c 100644
--- a/libavutil/internal.h
+++ b/libavutil/internal.h
@@ -302,4 +302,15 @@ static av_always_inline av_const float truncf(float x)
}
#endif /* HAVE_TRUNCF */
+/**
+ * Returns NULL if CONFIG_SMALL is true otherwise the argument
+ * without modifications, used to disable the definition of strings
+ * (for example AVCodec long_names).
+ */
+#if CONFIG_SMALL
+# define NULL_IF_CONFIG_SMALL(x) NULL
+#else
+# define NULL_IF_CONFIG_SMALL(x) x
+#endif
+
#endif /* AVUTIL_INTERNAL_H */