[FFmpeg-cvslog] r14668 - in trunk/libavdevice: alldevices.c avdevice.h
stefano
subversion
Fri Aug 8 20:42:31 CEST 2008
Author: stefano
Date: Fri Aug 8 20:42:31 2008
New Revision: 14668
Log:
Implement avdevice_version().
Modified:
trunk/libavdevice/alldevices.c
trunk/libavdevice/avdevice.h
Modified: trunk/libavdevice/alldevices.c
==============================================================================
--- trunk/libavdevice/alldevices.c (original)
+++ trunk/libavdevice/alldevices.c Fri Aug 8 20:42:31 2008
@@ -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; \
Modified: trunk/libavdevice/avdevice.h
==============================================================================
--- trunk/libavdevice/avdevice.h (original)
+++ trunk/libavdevice/avdevice.h Fri Aug 8 20:42:31 2008
@@ -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.
*/
More information about the ffmpeg-cvslog
mailing list