Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 10535:95f3daa991a2 | 10536:046dcf7aa19c |
|---|---|
| 901 } | 901 } |
| 902 | 902 |
| 903 unsigned avcodec_version( void ) | 903 unsigned avcodec_version( void ) |
| 904 { | 904 { |
| 905 return LIBAVCODEC_VERSION_INT; | 905 return LIBAVCODEC_VERSION_INT; |
| 906 } | |
| 907 | |
| 908 const char * avcodec_configuration(void) | |
| 909 { | |
| 910 return FFMPEG_CONFIGURATION; | |
| 911 } | |
| 912 | |
| 913 const char * avcodec_license(void) | |
| 914 { | |
| 915 #define LICENSE_PREFIX "libavcodec license: " | |
| 916 return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1; | |
| 906 } | 917 } |
| 907 | 918 |
| 908 void avcodec_init(void) | 919 void avcodec_init(void) |
| 909 { | 920 { |
| 910 static int initialized = 0; | 921 static int initialized = 0; |
