diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-08-23 07:23:52 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-09-03 20:53:35 +0200 |
commit | fb4ca26bdbddfbbf21a2a212485d225438b4b234 (patch) | |
tree | 983d095575b393167fd7df1f2bd14e9f0ba9db39 /libavformat | |
parent | c11fb8288d282da430f598bb029deccbacb31591 (diff) | |
download | ffmpeg-fb4ca26bdbddfbbf21a2a212485d225438b4b234.tar.gz |
lavf,lavc,sws: add {avcodec,avformat,sws}_get_class() functions.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/avformat.h | 8 | ||||
-rw-r--r-- | libavformat/options.c | 5 | ||||
-rw-r--r-- | libavformat/version.h | 2 |
3 files changed, 14 insertions, 1 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 2a00a9fea4..cc5457e8a2 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -1613,4 +1613,12 @@ int av_match_ext(const char *filename, const char *extensions); */ int avformat_query_codec(AVOutputFormat *ofmt, enum CodecID codec_id, int std_compliance); +/** + * Get the AVClass for AVFormatContext. It can be used in combination with + * AV_OPT_SEARCH_FAKE_OBJ for examining options. + * + * @see av_opt_find(). + */ +const AVClass *avformat_get_class(void); + #endif /* AVFORMAT_AVFORMAT_H */ diff --git a/libavformat/options.c b/libavformat/options.c index 5ea0b181cb..43a6dec323 100644 --- a/libavformat/options.c +++ b/libavformat/options.c @@ -123,3 +123,8 @@ AVFormatContext *avformat_alloc_context(void) avformat_get_context_defaults(ic); return ic; } + +const AVClass *avformat_get_class(void) +{ + return &av_format_context_class; +} diff --git a/libavformat/version.h b/libavformat/version.h index 36f14390e5..f952967f5d 100644 --- a/libavformat/version.h +++ b/libavformat/version.h @@ -24,7 +24,7 @@ #include "libavutil/avutil.h" #define LIBAVFORMAT_VERSION_MAJOR 53 -#define LIBAVFORMAT_VERSION_MINOR 5 +#define LIBAVFORMAT_VERSION_MINOR 6 #define LIBAVFORMAT_VERSION_MICRO 0 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \ |