# HG changeset patch # User michael # Date 1272484823 0 # Node ID 3da317f52661f7a88aa496ab7c311eb33ecfe05b # Parent 2c69c6015a8433eec26422d42f5de1d1ac48d711 Add version to AVClass so we can add to and use fields of AVClass without ABI issues. diff -r 2c69c6015a84 -r 3da317f52661 options.c --- 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; diff -r 2c69c6015a84 -r 3da317f52661 resample.c --- 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;