X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fbuffersink.c;h=25b3f4ab6bbd06760186e68b88a7505f900e16d6;hb=f166951d6e32d2776373721bc262d338c44a5d81;hp=0f87b5439acd0819a5b4ba380a82377a21652d64;hpb=22219a3ac46ac18f797c94e4619a34728556786c;p=ffmpeg diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c index 0f87b5439ac..25b3f4ab6bb 100644 --- a/libavfilter/buffersink.c +++ b/libavfilter/buffersink.c @@ -320,7 +320,7 @@ static const AVOption buffersink_options[] = { { NULL }, }; #undef FLAGS -#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_VIDEO_PARAM +#define FLAGS AV_OPT_FLAG_FILTERING_PARAM|AV_OPT_FLAG_AUDIO_PARAM static const AVOption abuffersink_options[] = { { "sample_fmts", "set the supported sample formats", OFFSET(sample_fmts), AV_OPT_TYPE_BINARY, .flags = FLAGS }, { "sample_rates", "set the supported sample rates", OFFSET(sample_rates), AV_OPT_TYPE_BINARY, .flags = FLAGS }, @@ -336,42 +336,40 @@ AVFILTER_DEFINE_CLASS(abuffersink); static const AVFilterPad avfilter_vsink_buffer_inputs[] = { { - .name = "default", - .type = AVMEDIA_TYPE_VIDEO, + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, }, { NULL } }; AVFilter ff_vsink_buffer = { - .name = "buffersink", - .description = NULL_IF_CONFIG_SMALL("Buffer video frames, and make them available to the end of the filter graph."), - .priv_size = sizeof(BufferSinkContext), - .priv_class = &buffersink_class, - .init_opaque = vsink_init, - + .name = "buffersink", + .description = NULL_IF_CONFIG_SMALL("Buffer video frames, and make them available to the end of the filter graph."), + .priv_size = sizeof(BufferSinkContext), + .priv_class = &buffersink_class, + .init_opaque = vsink_init, .query_formats = vsink_query_formats, - .activate = activate, - .inputs = avfilter_vsink_buffer_inputs, - .outputs = NULL, + .activate = activate, + .inputs = avfilter_vsink_buffer_inputs, + .outputs = NULL, }; static const AVFilterPad avfilter_asink_abuffer_inputs[] = { { - .name = "default", - .type = AVMEDIA_TYPE_AUDIO, + .name = "default", + .type = AVMEDIA_TYPE_AUDIO, }, { NULL } }; AVFilter ff_asink_abuffer = { - .name = "abuffersink", - .description = NULL_IF_CONFIG_SMALL("Buffer audio frames, and make them available to the end of the filter graph."), - .priv_class = &abuffersink_class, - .priv_size = sizeof(BufferSinkContext), - .init_opaque = asink_init, - + .name = "abuffersink", + .description = NULL_IF_CONFIG_SMALL("Buffer audio frames, and make them available to the end of the filter graph."), + .priv_class = &abuffersink_class, + .priv_size = sizeof(BufferSinkContext), + .init_opaque = asink_init, .query_formats = asink_query_formats, - .activate = activate, - .inputs = avfilter_asink_abuffer_inputs, - .outputs = NULL, + .activate = activate, + .inputs = avfilter_asink_abuffer_inputs, + .outputs = NULL, };