changeset 5987:d5672e116fe4 libavformat

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 bbac6af4238c
children 10867093c93c
files avio.c options.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/avio.c	Wed Apr 28 07:57:07 2010 +0000
+++ b/avio.c	Wed Apr 28 20:00:23 2010 +0000
@@ -41,7 +41,7 @@
 }
 static const AVOption options[] = {{NULL}};
 static const AVClass urlcontext_class =
-        { "URLContext", urlcontext_to_name, options };
+        { "URLContext", urlcontext_to_name, options, LIBAVUTIL_VERSION_INT };
 /*@}*/
 #endif
 
--- a/options.c	Wed Apr 28 07:57:07 2010 +0000
+++ b/options.c	Wed Apr 28 20:00:23 2010 +0000
@@ -66,7 +66,7 @@
 #undef D
 #undef DEFAULT
 
-static const AVClass av_format_context_class = { "AVFormatContext", format_to_name, options };
+static const AVClass av_format_context_class = { "AVFormatContext", format_to_name, options, LIBAVUTIL_VERSION_INT };
 
 static void avformat_get_context_defaults(AVFormatContext *s)
 {