# HG changeset patch # User stefano # Date 1218220340 0 # Node ID fc868fc6439ce6fa36b6dea34d43b229a840024a # Parent 8e14aa88d6cb9ff8c9cc894383a85b18cdb5765a Implement avutil_version(). diff -r 8e14aa88d6cb -r fc868fc6439c Makefile --- a/Makefile Thu Aug 07 07:01:54 2008 +0000 +++ b/Makefile Fri Aug 08 18:32:20 2008 +0000 @@ -21,6 +21,7 @@ sha1.o \ string.o \ tree.o \ + utils.o \ HEADERS = adler32.h \ avstring.h \ diff -r 8e14aa88d6cb -r fc868fc6439c avutil.h --- a/avutil.h Thu Aug 07 07:01:54 2008 +0000 +++ b/avutil.h Fri Aug 08 18:32:20 2008 +0000 @@ -35,7 +35,7 @@ #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c) #define LIBAVUTIL_VERSION_MAJOR 49 -#define LIBAVUTIL_VERSION_MINOR 7 +#define LIBAVUTIL_VERSION_MINOR 8 #define LIBAVUTIL_VERSION_MICRO 0 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \ @@ -48,6 +48,10 @@ #define LIBAVUTIL_IDENT "Lavu" AV_STRINGIFY(LIBAVUTIL_VERSION) +/** + * Returns the LIBAVUTIL_VERSION_INT constant. + */ +unsigned avutil_version(void); #include "common.h" #include "mathematics.h" diff -r 8e14aa88d6cb -r fc868fc6439c utils.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/utils.c Fri Aug 08 18:32:20 2008 +0000 @@ -0,0 +1,29 @@ +/* + * 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 "avutil.h" + +/** + * @file libavutil/utils.c + * various utility functions + */ + +unsigned avutil_version(void) +{ + return LIBAVUTIL_VERSION_INT; +}