X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_copy.c;h=43fdc9a9a29a8437bcf737636a1432f3aa7535ba;hb=83962004f7275a4ea98ca02398ae5dfff59e5fb7;hp=d62108ad19f2607e1f87acf3239a8cc3b682c8f8;hpb=b6c3487e7f2f8f0d8fae9df023c46ed3112c7443;p=ffmpeg diff --git a/libavfilter/vf_copy.c b/libavfilter/vf_copy.c index d62108ad19f..43fdc9a9a29 100644 --- a/libavfilter/vf_copy.c +++ b/libavfilter/vf_copy.c @@ -26,18 +26,30 @@ #include "internal.h" #include "video.h" +static const AVFilterPad avfilter_vf_copy_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, + .rej_perms = ~0 + }, + { NULL } +}; + +static const AVFilterPad avfilter_vf_copy_outputs[] = { + { + .name = "default", + .type = AVMEDIA_TYPE_VIDEO, + }, + { NULL } +}; + AVFilter avfilter_vf_copy = { .name = "copy", .description = NULL_IF_CONFIG_SMALL("Copy the input video unchanged to the output."), - .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, - .rej_perms = ~0 }, - { .name = NULL}}, - .outputs = (const AVFilterPad[]) {{ .name = "default", - .type = AVMEDIA_TYPE_VIDEO, }, - { .name = NULL}}, + .inputs = avfilter_vf_copy_inputs, + .outputs = avfilter_vf_copy_outputs, };