changeset 11664:3da317f52661 libavcodec

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 2c69c6015a84
children 85ee3d14b906
files options.c resample.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/options.c	Mon Apr 26 22:39:08 2010 +0000
+++ b/options.c	Wed Apr 28 20:00:23 2010 +0000
@@ -421,7 +421,7 @@
 #undef D
 #undef DEFAULT
 
-static const AVClass av_codec_context_class = { "AVCodecContext", context_to_name, options };
+static const AVClass av_codec_context_class = { "AVCodecContext", context_to_name, options, LIBAVUTIL_VERSION_INT };
 
 void avcodec_get_context_defaults2(AVCodecContext *s, enum AVMediaType codec_type){
     int flags=0;
--- a/resample.c	Mon Apr 26 22:39:08 2010 +0000
+++ b/resample.c	Wed Apr 28 20:00:23 2010 +0000
@@ -36,7 +36,7 @@
 }
 
 static const AVOption options[] = {{NULL}};
-static const AVClass audioresample_context_class = { "ReSampleContext", context_to_name, options };
+static const AVClass audioresample_context_class = { "ReSampleContext", context_to_name, options, LIBAVUTIL_VERSION_INT };
 
 struct ReSampleContext {
     struct AVResampleContext *resample_context;