aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2009-11-18 17:15:17 +0000
committerDiego Biurrun <diego@biurrun.de>2009-11-18 17:15:17 +0000
commitc1736936982e9b0d3400462eda2b0bf410f6e003 (patch)
treef147fdb968bd17ed937618c3362fc668cdffb0ef /libavutil
parentd7a0e29f3156271e4ff7c551199ba42d28e7934d (diff)
downloadffmpeg-c1736936982e9b0d3400462eda2b0bf410f6e003.tar.gz
Add functions to return library license and library configuration.
Originally committed as revision 20547 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/avutil.h10
-rw-r--r--libavutil/utils.c12
2 files changed, 22 insertions, 0 deletions
diff --git a/libavutil/avutil.h b/libavutil/avutil.h
index da282bfb72..2a3db1ce84 100644
--- a/libavutil/avutil.h
+++ b/libavutil/avutil.h
@@ -53,6 +53,16 @@
*/
unsigned avutil_version(void);
+/**
+ * Returns the libavutil build-time configuration.
+ */
+const char * avutil_configuration(void);
+
+/**
+ * Returns the libavutil license.
+ */
+const char * avutil_license(void);
+
#include "common.h"
#include "mathematics.h"
#include "rational.h"
diff --git a/libavutil/utils.c b/libavutil/utils.c
index 2521d3401e..26499b8389 100644
--- a/libavutil/utils.c
+++ b/libavutil/utils.c
@@ -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 @@ unsigned avutil_version(void)
{
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;
+}