From c97429e22b24796686f5d9c257af95713490dcb2 Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Fri, 8 Aug 2008 18:40:50 +0000 Subject: [PATCH] Implement avformat_version(). Originally committed as revision 14667 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/avformat.h | 7 ++++++- libavformat/utils.c | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 8479d6720f..c7188f5bf6 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -22,7 +22,7 @@ #define FFMPEG_AVFORMAT_H #define LIBAVFORMAT_VERSION_MAJOR 52 -#define LIBAVFORMAT_VERSION_MINOR 19 +#define LIBAVFORMAT_VERSION_MINOR 20 #define LIBAVFORMAT_VERSION_MICRO 0 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ @@ -35,6 +35,11 @@ #define LIBAVFORMAT_IDENT "Lavf" AV_STRINGIFY(LIBAVFORMAT_VERSION) +/** + * Returns the LIBAVFORMAT_VERSION_INT constant. + */ +unsigned avformat_version(void); + #include #include /* FILE */ #include "libavcodec/avcodec.h" diff --git a/libavformat/utils.c b/libavformat/utils.c index 1d96d3c5d4..c9b25badeb 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -33,6 +33,11 @@ * various utility functions for use within FFmpeg */ +unsigned avformat_version(void) +{ + return LIBAVFORMAT_VERSION_INT; +} + static void av_frac_init(AVFrac *f, int64_t val, int64_t num, int64_t den); static void av_frac_add(AVFrac *f, int64_t incr);