diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-09-07 12:13:50 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-09-12 14:01:43 +0000 |
commit | b211607b5c97b9f0c30764c0abacc90abd9a4cc2 (patch) | |
tree | fe3da9fa93ad64df397efb2f6b8da74a617e39ab /libavfilter/vf_format.c | |
parent | ba5e77814e5cb60d8476b831cdb6223cea98a7d4 (diff) | |
download | ffmpeg-b211607b5c97b9f0c30764c0abacc90abd9a4cc2.tar.gz |
avfilter: various cosmetics
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/vf_format.c')
-rw-r--r-- | libavfilter/vf_format.c | 38 |
1 files changed, 15 insertions, 23 deletions
diff --git a/libavfilter/vf_format.c b/libavfilter/vf_format.c index 25b3d19952..512256bba3 100644 --- a/libavfilter/vf_format.c +++ b/libavfilter/vf_format.c @@ -99,7 +99,7 @@ static AVFilterFormats *make_format_list(FormatContext *s, int flag) #define OFFSET(x) offsetof(FormatContext, x) static const AVOption options[] = { { "pix_fmts", "A '|'-separated list of pixel formats", OFFSET(pix_fmts), AV_OPT_TYPE_STRING, .flags = AV_OPT_FLAG_VIDEO_PARAM }, - { NULL }, + { NULL } }; #if CONFIG_FORMAT_FILTER @@ -130,18 +130,14 @@ static const AVFilterPad avfilter_vf_format_outputs[] = { }; AVFilter avfilter_vf_format = { - .name = "format", - .description = NULL_IF_CONFIG_SMALL("Convert the input video to one of the specified pixel formats."), - - .init = init, - + .name = "format", + .description = NULL_IF_CONFIG_SMALL("Convert the input video to one of the specified pixel formats."), + .init = init, .query_formats = query_formats_format, - - .priv_size = sizeof(FormatContext), - .priv_class = &format_class, - - .inputs = avfilter_vf_format_inputs, - .outputs = avfilter_vf_format_outputs, + .priv_size = sizeof(FormatContext), + .priv_class = &format_class, + .inputs = avfilter_vf_format_inputs, + .outputs = avfilter_vf_format_outputs, }; #endif /* CONFIG_FORMAT_FILTER */ @@ -173,17 +169,13 @@ static const AVFilterPad avfilter_vf_noformat_outputs[] = { }; AVFilter avfilter_vf_noformat = { - .name = "noformat", - .description = NULL_IF_CONFIG_SMALL("Force libavfilter not to use any of the specified pixel formats for the input to the next filter."), - - .init = init, - + .name = "noformat", + .description = NULL_IF_CONFIG_SMALL("Force libavfilter not to use any of the specified pixel formats for the input to the next filter."), + .init = init, .query_formats = query_formats_noformat, - - .priv_size = sizeof(FormatContext), - .priv_class = &noformat_class, - - .inputs = avfilter_vf_noformat_inputs, - .outputs = avfilter_vf_noformat_outputs, + .priv_size = sizeof(FormatContext), + .priv_class = &noformat_class, + .inputs = avfilter_vf_noformat_inputs, + .outputs = avfilter_vf_noformat_outputs, }; #endif /* CONFIG_NOFORMAT_FILTER */ |