# HG changeset patch # User diego # Date 1258564517 0 # Node ID 238bda5af58e1970d108fc9f9915ce96b85f20f0 # Parent 347123a18feb9ebd1b79869e911604a5a59e3bab Add functions to return library license and library configuration. diff -r 347123a18feb -r 238bda5af58e avformat.h --- a/avformat.h Sun Nov 15 03:26:47 2009 +0000 +++ b/avformat.h Wed Nov 18 17:15:17 2009 +0000 @@ -40,6 +40,16 @@ */ unsigned avformat_version(void); +/** + * Returns the libavformat build-time configuration. + */ +const char * avformat_configuration(void); + +/** + * Returns the libavformat license. + */ +const char * avformat_license(void); + #include #include /* FILE */ #include "libavcodec/avcodec.h" diff -r 347123a18feb -r 238bda5af58e utils.c --- a/utils.c Sun Nov 15 03:26:47 2009 +0000 +++ b/utils.c Wed Nov 18 17:15:17 2009 +0000 @@ -41,6 +41,17 @@ return LIBAVFORMAT_VERSION_INT; } +const char * avformat_configuration(void) +{ + return FFMPEG_CONFIGURATION; +} + +const char * avformat_license(void) +{ +#define LICENSE_PREFIX "libavformat license: " + return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1; +} + /* fraction handling */ /**