Mercurial > libavutil.hg
diff utils.c @ 792:57659b3ef05c libavutil
Add functions to return library license and library configuration.
author | diego |
---|---|
date | Wed, 18 Nov 2009 17:15:17 +0000 |
parents | b4e91071297f |
children | 98783d518982 |
line wrap: on
line diff
--- a/utils.c Wed Nov 18 00:07:20 2009 +0000 +++ b/utils.c Wed Nov 18 17:15:17 2009 +0000 @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "config.h" #include "avutil.h" /** @@ -27,3 +28,14 @@ { return LIBAVUTIL_VERSION_INT; } + +const char * avutil_configuration(void) +{ + return FFMPEG_CONFIGURATION; +} + +const char * avutil_license(void) +{ +#define LICENSE_PREFIX "libavutil license: " + return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1; +}