changeset 912:5ffcf744a157 libavutil

Add version to AVClass so we can add to and use fields of AVClass without ABI issues.
author michael
date Wed, 28 Apr 2010 20:00:23 +0000
parents 71ebc8b18666
children de7b577403bc
files avutil.h log.h
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/avutil.h	Tue Apr 27 22:26:08 2010 +0000
+++ b/avutil.h	Wed Apr 28 20:00:23 2010 +0000
@@ -40,7 +40,7 @@
 #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
 
 #define LIBAVUTIL_VERSION_MAJOR 50
-#define LIBAVUTIL_VERSION_MINOR 14
+#define LIBAVUTIL_VERSION_MINOR 15
 #define LIBAVUTIL_VERSION_MICRO  0
 
 #define LIBAVUTIL_VERSION_INT   AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
--- a/log.h	Tue Apr 27 22:26:08 2010 +0000
+++ b/log.h	Wed Apr 28 20:00:23 2010 +0000
@@ -48,6 +48,14 @@
      * @see av_set_default_options()
      */
     const struct AVOption *option;
+
+    /**
+     * LIBAVUTIL_VERSION with which this structure was created.
+     * This is used to allow fields to be added without requireing major
+     * version bumps everywhere.
+     */
+
+    int version;
 } AVClass;
 
 /* av_log API */