summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2008-08-08 18:42:31 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2008-08-08 18:42:31 +0000
commitb3b990b6598abf3f94a87f7017b826eaeaedf000 (patch)
tree705245efa4c724c5e64eb7e1e882f2f930cf317c /libavdevice
parentc97429e22b24796686f5d9c257af95713490dcb2 (diff)
Implement avdevice_version().
Originally committed as revision 14668 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/alldevices.c6
-rw-r--r--libavdevice/avdevice.h7
2 files changed, 12 insertions, 1 deletions
diff --git a/libavdevice/alldevices.c b/libavdevice/alldevices.c
index 6dfd350264..b94db6335f 100644
--- a/libavdevice/alldevices.c
+++ b/libavdevice/alldevices.c
@@ -20,6 +20,12 @@
#include "config.h"
#include "libavformat/avformat.h"
+#include "avdevice.h"
+
+unsigned avdevice_version(void)
+{
+ return LIBAVDEVICE_VERSION_INT;
+}
#define REGISTER_MUXER(X,x) { \
extern AVOutputFormat x##_muxer; \
diff --git a/libavdevice/avdevice.h b/libavdevice/avdevice.h
index 3d4a1a3c78..0291de5889 100644
--- a/libavdevice/avdevice.h
+++ b/libavdevice/avdevice.h
@@ -20,7 +20,7 @@
#define FFMPEG_AVDEVICE_H
#define LIBAVDEVICE_VERSION_MAJOR 52
-#define LIBAVDEVICE_VERSION_MINOR 0
+#define LIBAVDEVICE_VERSION_MINOR 1
#define LIBAVDEVICE_VERSION_MICRO 0
#define LIBAVDEVICE_VERSION_INT AV_VERSION_INT(LIBAVDEVICE_VERSION_MAJOR, \
@@ -32,6 +32,11 @@
#define LIBAVDEVICE_BUILD LIBAVDEVICE_VERSION_INT
/**
+ * Returns the LIBAVDEVICE_VERSION_INT constant.
+ */
+unsigned avdevice_version(void);
+
+/**
* Initialize libavdevice and register all the input and output devices.
* @warning This function is not thread safe.
*/