[FFmpeg-cvslog] set some categories of some AVClass structs

Michael Niedermayer git at videolan.org
Sun Jun 3 22:21:15 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon May 28 12:50:06 2012 +0200| [a5c7525bcb1fcbcd6de2240f6417cc4925576632] | committer: Michael Niedermayer

set some categories of some AVClass structs

Please help setting the category for all remaining AVClasses

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a5c7525bcb1fcbcd6de2240f6417cc4925576632
---

 libavcodec/options.c     |    1 +
 libavfilter/af_aformat.c |    1 +
 libavfilter/avfilter.c   |    1 +
 libavfilter/buffersrc.c  |    1 +
 libavformat/options.c    |    1 +
 5 files changed, 5 insertions(+)

diff --git a/libavcodec/options.c b/libavcodec/options.c
index a08b7e5..ed51146 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -73,6 +73,7 @@ static const AVClass av_codec_context_class = {
     .log_level_offset_offset = offsetof(AVCodecContext, log_level_offset),
     .child_next              = codec_child_next,
     .child_class_next        = codec_child_class_next,
+    .category                = AV_CLASS_CATEGORY_ENCODER,
 };
 
 #if FF_API_ALLOC_CONTEXT
diff --git a/libavfilter/af_aformat.c b/libavfilter/af_aformat.c
index c602f5d..35e7db8 100644
--- a/libavfilter/af_aformat.c
+++ b/libavfilter/af_aformat.c
@@ -58,6 +58,7 @@ static const AVClass aformat_class = {
     .item_name  = av_default_item_name,
     .option     = options,
     .version    = LIBAVUTIL_VERSION_INT,
+    .category = AV_CLASS_CATEGORY_FILTER,
 };
 
 #define PARSE_FORMATS(str, type, list, add_to_list, get_fmt, none, desc)    \
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 38be0e6..0c3e7ed 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -376,6 +376,7 @@ static const AVClass avfilter_class = {
     .class_name = "AVFilter",
     .item_name  = filter_name,
     .version    = LIBAVUTIL_VERSION_INT,
+    .category = AV_CLASS_CATEGORY_FILTER,
 };
 
 int avfilter_open(AVFilterContext **filter_ctx, AVFilter *filter, const char *inst_name)
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index d4f7412..0c60caf 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -258,6 +258,7 @@ static const AVClass abuffer_class = {
     .item_name  = av_default_item_name,
     .option     = audio_options,
     .version    = LIBAVUTIL_VERSION_INT,
+    .category   = AV_CLASS_CATEGORY_FILTER,
 };
 
 static av_cold int init_audio(AVFilterContext *ctx, const char *args, void *opaque)
diff --git a/libavformat/options.c b/libavformat/options.c
index c305637..832d058 100644
--- a/libavformat/options.c
+++ b/libavformat/options.c
@@ -83,6 +83,7 @@ static const AVClass av_format_context_class = {
     .version        = LIBAVUTIL_VERSION_INT,
     .child_next     = format_child_next,
     .child_class_next = format_child_class_next,
+    .category       = AV_CLASS_CATEGORY_MUXER,
 };
 
 static void avformat_get_context_defaults(AVFormatContext *s)



More information about the ffmpeg-cvslog mailing list