summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-08-23 07:23:52 +0200
committerAnton Khirnov <anton@khirnov.net>2011-09-03 20:53:35 +0200
commitfb4ca26bdbddfbbf21a2a212485d225438b4b234 (patch)
tree983d095575b393167fd7df1f2bd14e9f0ba9db39 /libavcodec
parentc11fb8288d282da430f598bb029deccbacb31591 (diff)
lavf,lavc,sws: add {avcodec,avformat,sws}_get_class() functions.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/avcodec.h8
-rw-r--r--libavcodec/options.c5
-rw-r--r--libavcodec/version.h2
3 files changed, 14 insertions, 1 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 73a68b9740..f30584cb98 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -4306,4 +4306,12 @@ int av_lockmgr_register(int (*cb)(void **mutex, enum AVLockOp op));
*/
enum AVMediaType avcodec_get_type(enum CodecID codec_id);
+/**
+ * Get the AVClass for AVCodecContext. It can be used in combination with
+ * AV_OPT_SEARCH_FAKE_OBJ for examining options.
+ *
+ * @see av_opt_find().
+ */
+const AVClass *avcodec_get_class(void);
+
#endif /* AVCODEC_AVCODEC_H */
diff --git a/libavcodec/options.c b/libavcodec/options.c
index 97525634d8..9684ed547b 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -662,3 +662,8 @@ fail:
av_freep(&dest->rc_eq);
return AVERROR(ENOMEM);
}
+
+const AVClass *avcodec_get_class(void)
+{
+ return &av_codec_context_class;
+}
diff --git a/libavcodec/version.h b/libavcodec/version.h
index d4c358e182..a430e3b55b 100644
--- a/libavcodec/version.h
+++ b/libavcodec/version.h
@@ -21,7 +21,7 @@
#define AVCODEC_VERSION_H
#define LIBAVCODEC_VERSION_MAJOR 53
-#define LIBAVCODEC_VERSION_MINOR 9
+#define LIBAVCODEC_VERSION_MINOR 10
#define LIBAVCODEC_VERSION_MICRO 0
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \