Browse Source

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

Originally committed as revision 13595 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Stefano Sabatini Panagiotis Issaris 17 years ago
parent
commit
4a567b40b1
2 changed files with 12 additions and 1 deletions
  1. +1
    -1
      libavutil/avutil.h
  2. +11
    -0
      libavutil/common.h

+ 1
- 1
libavutil/avutil.h View File

@@ -35,7 +35,7 @@
#define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)

#define LIBAVUTIL_VERSION_MAJOR 49
#define LIBAVUTIL_VERSION_MINOR 6
#define LIBAVUTIL_VERSION_MINOR 7
#define LIBAVUTIL_VERSION_MICRO 0

#define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \


+ 11
- 0
libavutil/common.h View File

@@ -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 */

Loading…
Cancel
Save