Commit 2b2380c0 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avfilter: Constify non-const filters

This makes the filters match their declaration in
libavfilter/allfilters.c; the earlier discrepancy was btw UB.
Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent 80831e74
......@@ -746,7 +746,7 @@ static const AVFilterPad libplacebo_outputs[] = {
},
};
AVFilter ff_vf_libplacebo = {
const AVFilter ff_vf_libplacebo = {
.name = "libplacebo",
.description = NULL_IF_CONFIG_SMALL("Apply various GPU filters from libplacebo"),
.priv_size = sizeof(LibplaceboContext),
......
......@@ -408,7 +408,7 @@ static const AVFilterPad overlay_vaapi_outputs[] = {
},
};
AVFilter ff_vf_overlay_vaapi = {
const AVFilter ff_vf_overlay_vaapi = {
.name = "overlay_vaapi",
.description = NULL_IF_CONFIG_SMALL("Overlay one video on top of another"),
.priv_size = sizeof(OverlayVAAPIContext),
......
......@@ -335,7 +335,7 @@ static const AVFilterPad avfilter_vf_siti_outputs[] = {
},
};
AVFilter ff_vf_siti = {
const AVFilter ff_vf_siti = {
.name = "siti",
.description = NULL_IF_CONFIG_SMALL("Calculate spatial information (SI) and temporal information (TI)."),
.priv_size = sizeof(SiTiContext),
......
......@@ -440,7 +440,7 @@ static const AVFilterPad yadif_videotoolbox_outputs[] = {
},
};
AVFilter ff_vf_yadif_videotoolbox = {
const AVFilter ff_vf_yadif_videotoolbox = {
.name = "yadif_videotoolbox",
.description = NULL_IF_CONFIG_SMALL("YADIF for VideoToolbox frames using Metal compute"),
.priv_size = YADIF_VT_CTX_SIZE,
......
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