[FFmpeg-devel] [PATCH 2/3] set some categories of some AVClass structs

Michael Niedermayer michaelni at gmx.at
Mon May 28 12:53:28 CEST 2012


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavcodec/options.c     |    1 +
 libavfilter/af_aformat.c |    1 +
 libavfilter/avfilter.c   |    1 +
 libavformat/options.c    |    1 +
 4 files changed, 4 insertions(+)

diff --git a/libavcodec/options.c b/libavcodec/options.c
index a08b7e5..6ef8f3c 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_LOG_CATEGORY_DECODER,
 };
 
 #if FF_API_ALLOC_CONTEXT
diff --git a/libavfilter/af_aformat.c b/libavfilter/af_aformat.c
index c602f5d..a7d54c0 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_LOG_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 9473c35..de1a376 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -377,6 +377,7 @@ static const AVClass avfilter_class = {
     filter_name,
     NULL,
     LIBAVUTIL_VERSION_INT,
+    .category = AV_LOG_CATEGORY_FILTER,
 };
 
 int avfilter_open(AVFilterContext **filter_ctx, AVFilter *filter, const char *inst_name)
diff --git a/libavformat/options.c b/libavformat/options.c
index c305637..9f34f3f 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_LOG_CATEGORY_MUXER,
 };
 
 static void avformat_get_context_defaults(AVFormatContext *s)
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list