diff log.h @ 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 e67b4de734af
children de7b577403bc
line wrap: on
line diff
--- 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 */