diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-08-08 18:43:38 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-08-08 18:43:38 +0000 |
commit | 540f1c7b138f6b9f973c9f44b3a756cb75e2b52d (patch) | |
tree | e6da2134fac14da96361d3072e4819f5db49c792 /libavfilter | |
parent | b3b990b6598abf3f94a87f7017b826eaeaedf000 (diff) | |
download | ffmpeg-540f1c7b138f6b9f973c9f44b3a756cb75e2b52d.tar.gz |
Implement avfilter_version().
Originally committed as revision 14669 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avfilter.c | 4 | ||||
-rw-r--r-- | libavfilter/avfilter.h | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 420e7c262b..d6f07a9ed6 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -22,6 +22,10 @@ #include "libavcodec/imgconvert.h" #include "avfilter.h" +unsigned avfilter_version(void) { + return LIBAVFILTER_VERSION_INT; +} + /** list of registered filters */ struct FilterList { diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 6f6c41155f..df79392394 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -23,7 +23,7 @@ #define FFMPEG_AVFILTER_H #define LIBAVFILTER_VERSION_MAJOR 0 -#define LIBAVFILTER_VERSION_MINOR 0 +#define LIBAVFILTER_VERSION_MINOR 1 #define LIBAVFILTER_VERSION_MICRO 0 #define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \ @@ -37,6 +37,11 @@ #include <stddef.h> #include "libavcodec/avcodec.h" +/** + * Returns the LIBAVFILTER_VERSION_INT constant. + */ +unsigned avfilter_version(void); + typedef struct AVFilterContext AVFilterContext; typedef struct AVFilterLink AVFilterLink; typedef struct AVFilterPad AVFilterPad; |