mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
Add functions to return library license and library configuration.
Originally committed as revision 20547 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user