Mercurial > libavcodec.hg
diff utils.c @ 10536:046dcf7aa19c libavcodec
Add functions to return library license and library configuration.
author | diego |
---|---|
date | Wed, 18 Nov 2009 17:15:17 +0000 |
parents | e7f082df2d65 |
children | 981e7720fc03 |
line wrap: on
line diff
--- a/utils.c Mon Nov 16 17:42:43 2009 +0000 +++ b/utils.c Wed Nov 18 17:15:17 2009 +0000 @@ -905,6 +905,17 @@ return LIBAVCODEC_VERSION_INT; } +const char * avcodec_configuration(void) +{ + return FFMPEG_CONFIGURATION; +} + +const char * avcodec_license(void) +{ +#define LICENSE_PREFIX "libavcodec license: " + return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1; +} + void avcodec_init(void) { static int initialized = 0;