X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_null.c;h=b22779d3587fec37652e630dea71a791cba42a47;hb=8a4284adbf180c8bf3f649d6dd4281565e0dd015;hp=9ab2767e8d661f7bcec77b8b1ba9d002d1b908b8;hpb=f74f8bc864b26cdbab606edcd6a401b4d1ca2700;p=ffmpeg diff --git a/libavfilter/vf_null.c b/libavfilter/vf_null.c index 9ab2767e8d6..b22779d3587 100644 --- a/libavfilter/vf_null.c +++ b/libavfilter/vf_null.c @@ -26,20 +26,32 @@ #include "internal.h" #include "video.h" +static const AVFilterPad avfilter_vf_null_inputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + .get_video_buffer = ff_null_get_video_buffer, + .start_frame = ff_null_start_frame, + .end_frame = ff_null_end_frame + }, + { NULL } +}; + +static const AVFilterPad avfilter_vf_null_outputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + }, + { NULL } +}; + AVFilter avfilter_vf_null = { .name = "null", .description = NULL_IF_CONFIG_SMALL("Pass the source unchanged to the output."), .priv_size = 0, - .inputs = (const AVFilterPad[]) {{ .name = "default", - .type = AVMEDIA_TYPE_VIDEO, - .get_video_buffer = ff_null_get_video_buffer, - .start_frame = ff_null_start_frame, - .end_frame = ff_null_end_frame }, - { .name = NULL}}, + .inputs = avfilter_vf_null_inputs, - .outputs = (const AVFilterPad[]) {{ .name = "default", - .type = AVMEDIA_TYPE_VIDEO, }, - { .name = NULL}}, + .outputs = avfilter_vf_null_outputs, };