diff options
Diffstat (limited to 'libavutil/common.h')
-rw-r--r-- | libavutil/common.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavutil/common.h b/libavutil/common.h index 45c059b39c..5b830d0645 100644 --- a/libavutil/common.h +++ b/libavutil/common.h @@ -387,4 +387,15 @@ tend= AV_READ_TIME();\ #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 */ |