Commit 1fce361d authored by Mans Rullgard's avatar Mans Rullgard
Browse files

lavfi: replace empty input/output lists with null pointers


Signed-off-by: default avatarMans Rullgard <mans@mansr.com>
parent 2f34021d
......@@ -556,7 +556,7 @@ AVFilter avfilter_af_amix = {
.uninit = uninit,
.query_formats = query_formats,
.inputs = (const AVFilterPad[]) {{ .name = NULL}},
.inputs = NULL,
.outputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_AUDIO,
.config_props = config_output,
......
......@@ -148,5 +148,5 @@ AVFilter avfilter_af_channelsplit = {
.type = AVMEDIA_TYPE_AUDIO,
.filter_samples = filter_samples, },
{ NULL }},
.outputs = (const AVFilterPad[]){{ NULL }},
.outputs = NULL,
};
......@@ -495,7 +495,7 @@ AVFilter avfilter_af_join = {
.uninit = join_uninit,
.query_formats = join_query_formats,
.inputs = (const AVFilterPad[]){{ NULL }},
.inputs = NULL,
.outputs = (const AVFilterPad[]){{ .name = "default",
.type = AVMEDIA_TYPE_AUDIO,
.config_props = join_config_output,
......
......@@ -39,5 +39,5 @@ AVFilter avfilter_asink_anullsink = {
},
{ .name = NULL},
},
.outputs = (const AVFilterPad[]) {{ .name = NULL }},
.outputs = NULL,
};
......@@ -91,7 +91,7 @@ AVFilter avfilter_asrc_anullsrc = {
.init = init,
.priv_size = sizeof(ANullContext),
.inputs = (const AVFilterPad[]) {{ .name = NULL}},
.inputs = NULL,
.outputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_AUDIO,
......
......@@ -302,6 +302,9 @@ static int pad_count(const AVFilterPad *pads)
{
int count;
if (!pads)
return 0;
for(count = 0; pads->name; count ++) pads ++;
return count;
}
......
......@@ -152,7 +152,7 @@ AVFilter avfilter_vsink_buffer = {
.min_perms = AV_PERM_READ,
.needs_fifo = 1 },
{ .name = NULL }},
.outputs = (const AVFilterPad[]) {{ .name = NULL }},
.outputs = NULL,
};
AVFilter avfilter_asink_abuffer = {
......@@ -167,5 +167,5 @@ AVFilter avfilter_asink_abuffer = {
.min_perms = AV_PERM_READ,
.needs_fifo = 1 },
{ .name = NULL }},
.outputs = (const AVFilterPad[]) {{ .name = NULL }},
.outputs = NULL,
};
......@@ -364,7 +364,7 @@ AVFilter avfilter_vsrc_buffer = {
.init = init_video,
.uninit = uninit,
.inputs = (const AVFilterPad[]) {{ .name = NULL }},
.inputs = NULL,
.outputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO,
.request_frame = request_frame,
......@@ -382,7 +382,7 @@ AVFilter avfilter_asrc_abuffer = {
.init = init_audio,
.uninit = uninit,
.inputs = (const AVFilterPad[]) {{ .name = NULL }},
.inputs = NULL,
.outputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_AUDIO,
.request_frame = request_frame,
......
......@@ -124,7 +124,7 @@ AVFilter avfilter_vf_split = {
.draw_slice = draw_slice,
.end_frame = end_frame, },
{ .name = NULL}},
.outputs = (const AVFilterPad[]) {{ .name = NULL}},
.outputs = NULL,
};
static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *samplesref)
......@@ -160,5 +160,5 @@ AVFilter avfilter_af_asplit = {
.get_audio_buffer = ff_null_get_audio_buffer,
.filter_samples = filter_samples },
{ .name = NULL }},
.outputs = (const AVFilterPad[]) {{ .name = NULL }},
.outputs = NULL,
};
......@@ -488,7 +488,7 @@ AVFilter avfilter_vsrc_frei0r_src = {
.query_formats = query_formats,
.inputs = (const AVFilterPad[]) {{ .name = NULL}},
.inputs = NULL,
.outputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO,
......
......@@ -45,5 +45,5 @@ AVFilter avfilter_vsink_nullsink = {
},
{ .name = NULL},
},
.outputs = (const AVFilterPad[]) {{ .name = NULL }},
.outputs = NULL,
};
......@@ -192,7 +192,7 @@ AVFilter avfilter_vsrc_color = {
.query_formats = query_formats,
.inputs = (const AVFilterPad[]) {{ .name = NULL}},
.inputs = NULL,
.outputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO,
......
......@@ -317,7 +317,7 @@ AVFilter avfilter_vsrc_movie = {
.uninit = uninit,
.query_formats = query_formats,
.inputs = (const AVFilterPad[]) {{ .name = NULL }},
.inputs = NULL,
.outputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO,
.request_frame = request_frame,
......
......@@ -121,7 +121,7 @@ AVFilter avfilter_vsrc_nullsrc = {
.init = init,
.priv_size = sizeof(NullContext),
.inputs = (const AVFilterPad[]) {{ .name = NULL}},
.inputs = NULL,
.outputs = (const AVFilterPad[]) {
{
......
......@@ -367,7 +367,7 @@ AVFilter avfilter_vsrc_testsrc = {
.query_formats = test_query_formats,
.inputs = (const AVFilterPad[]) {{ .name = NULL}},
.inputs = NULL,
.outputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO,
......@@ -494,7 +494,7 @@ AVFilter avfilter_vsrc_rgbtestsrc = {
.query_formats = rgbtest_query_formats,
.inputs = (const AVFilterPad[]) {{ .name = NULL}},
.inputs = NULL,
.outputs = (const AVFilterPad[]) {{ .name = "default",
.type = AVMEDIA_TYPE_VIDEO,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment