diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-06-16 12:34:36 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-06-17 11:10:10 +0000 |
commit | 54101214d89382a24518f21a30080631a981c798 (patch) | |
tree | ea0a997aaf725ecb53b5df15d5496f48c556fd10 /libavfilter/vsrc_testsrc.c | |
parent | d70a1a507d9e6d504aa76b56b3fdea5197011b2d (diff) | |
download | ffmpeg-streaming-54101214d89382a24518f21a30080631a981c798.zip ffmpeg-streaming-54101214d89382a24518f21a30080631a981c798.tar.gz |
lavfi: use designated initializers for AVClass
While here:
- add missing .version and .category,
- make .class_name consistent across filters,
- align declarations.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vsrc_testsrc.c')
-rw-r--r-- | libavfilter/vsrc_testsrc.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c index 8334f3d..4b0e4b1 100644 --- a/libavfilter/vsrc_testsrc.c +++ b/libavfilter/vsrc_testsrc.c @@ -159,9 +159,11 @@ static int request_frame(AVFilterLink *outlink) #if CONFIG_NULLSRC_FILTER static const AVClass nullsrc_class = { - .class_name = "NullSourceContext", + .class_name = "nullsrc", .item_name = av_default_item_name, .option = testsrc_options, + .version = LIBAVUTIL_VERSION_INT, + .category = AV_CLASS_CATEGORY_FILTER, }; static void nullsrc_fill_picture(AVFilterContext *ctx, AVFilterBufferRef *picref) { } @@ -194,9 +196,11 @@ AVFilter avfilter_vsrc_nullsrc = { #if CONFIG_TESTSRC_FILTER static const AVClass testsrc_class = { - .class_name = "TestSourceContext", + .class_name = "testsrc", .item_name = av_default_item_name, .option = testsrc_options, + .version = LIBAVUTIL_VERSION_INT, + .category = AV_CLASS_CATEGORY_FILTER, }; /** @@ -416,9 +420,11 @@ AVFilter avfilter_vsrc_testsrc = { #if CONFIG_RGBTESTSRC_FILTER static const AVClass rgbtestsrc_class = { - .class_name = "RGBTestSourceContext", + .class_name = "rgbtestsrc", .item_name = av_default_item_name, .option = testsrc_options, + .version = LIBAVUTIL_VERSION_INT, + .category = AV_CLASS_CATEGORY_FILTER, }; #define R 0 |