diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-04-28 20:00:23 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-04-28 20:00:23 +0000 |
commit | 2308b6c19a74c0b1af58c12ab379976b54bc83a2 (patch) | |
tree | 01c228ac7cac4cd32b96462741469a70ed64f087 /libavcodec | |
parent | b01dba14f36aa3ff3d6fe89acf71eddbd65e7027 (diff) | |
download | ffmpeg-2308b6c19a74c0b1af58c12ab379976b54bc83a2.tar.gz |
Add version to AVClass so we can add to and use fields of AVClass without ABI issues.
Originally committed as revision 22987 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/options.c | 2 | ||||
-rw-r--r-- | libavcodec/resample.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/options.c b/libavcodec/options.c index 65305224fe..6835352c30 100644 --- a/libavcodec/options.c +++ b/libavcodec/options.c @@ -421,7 +421,7 @@ static const AVOption options[]={ #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 --git a/libavcodec/resample.c b/libavcodec/resample.c index dce88abd43..b008180fe5 100644 --- a/libavcodec/resample.c +++ b/libavcodec/resample.c @@ -36,7 +36,7 @@ static const char *context_to_name(void *ptr) } 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; |