From 2b2380c098569af88e7a77aff78f330d11090512 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Fri, 1 Apr 2022 20:54:54 +0200 Subject: [PATCH] avfilter: Constify non-const filters This makes the filters match their declaration in libavfilter/allfilters.c; the earlier discrepancy was btw UB. Reviewed-by: Paul B Mahol Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_libplacebo.c | 2 +- libavfilter/vf_overlay_vaapi.c | 2 +- libavfilter/vf_siti.c | 2 +- libavfilter/vf_yadif_videotoolbox.m | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c index 8ce6462c66..5bcdd64d84 100644 --- a/libavfilter/vf_libplacebo.c +++ b/libavfilter/vf_libplacebo.c @@ -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), diff --git a/libavfilter/vf_overlay_vaapi.c b/libavfilter/vf_overlay_vaapi.c index 1227a8c4c4..b3a624ae15 100644 --- a/libavfilter/vf_overlay_vaapi.c +++ b/libavfilter/vf_overlay_vaapi.c @@ -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), diff --git a/libavfilter/vf_siti.c b/libavfilter/vf_siti.c index b0d3d95be2..94cf4e3c5c 100644 --- a/libavfilter/vf_siti.c +++ b/libavfilter/vf_siti.c @@ -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), diff --git a/libavfilter/vf_yadif_videotoolbox.m b/libavfilter/vf_yadif_videotoolbox.m index 455745817f..69186c2254 100644 --- a/libavfilter/vf_yadif_videotoolbox.m +++ b/libavfilter/vf_yadif_videotoolbox.m @@ -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,