diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-21 18:28:42 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-07-21 18:28:42 +0000 |
commit | aac6ca6978306bf0f0254bab8a608648014ed3e5 (patch) | |
tree | 65edd929c762ce7aa6a3c79304a075b6e47e208f /libavcore/utils.c | |
parent | ac1a31ab036597e15be5865fc2a42c3cca79ac8a (diff) | |
download | ffmpeg-aac6ca6978306bf0f0254bab8a608648014ed3e5.tar.gz |
Add libavcore.
The new library is meant to contain the core multimedia utilities for
FFmpeg, to make them shareable between more libav* libraries.
See thread:
Subject: [FFmpeg-devel] [RFC] New library for shared non-generic libav* utils
Date: Fri, 9 Jul 2010 01:07:40 +0200
Originally committed as revision 24393 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcore/utils.c')
-rw-r--r-- | libavcore/utils.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/libavcore/utils.c b/libavcore/utils.c new file mode 100644 index 0000000000..8350a9bcad --- /dev/null +++ b/libavcore/utils.c @@ -0,0 +1,41 @@ +/* + * This file is part of FFmpeg. + * + * FFmpeg is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * FFmpeg is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with FFmpeg; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include "config.h" +#include "avcore.h" + +/** + * @file + * various utility functions + */ + +unsigned avcore_version(void) +{ + return LIBAVCORE_VERSION_INT; +} + +const char *avcore_configuration(void) +{ + return FFMPEG_CONFIGURATION; +} + +const char *avcore_license(void) +{ +#define LICENSE_PREFIX "libavcore license: " + return LICENSE_PREFIX FFMPEG_LICENSE + sizeof(LICENSE_PREFIX) - 1; +} |