diff utils.c @ 5370:238bda5af58e libavformat

Add functions to return library license and library configuration.
author diego
date Wed, 18 Nov 2009 17:15:17 +0000
parents 4696e193f943
children aec4d71f32e4
line wrap: on
line diff
--- 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 */
 
 /**