summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-04-01 20:54:54 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-04-01 21:29:01 +0200
commit2b2380c098569af88e7a77aff78f330d11090512 (patch)
tree1f41c9459c6d7dc879715692ff0383e9a5e60086 /libavfilter
parent80831e742b3cf58ef3f23cc66be23df2c41c3901 (diff)
downloadffmpeg-2b2380c098569af88e7a77aff78f330d11090512.tar.gz
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 <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_libplacebo.c2
-rw-r--r--libavfilter/vf_overlay_vaapi.c2
-rw-r--r--libavfilter/vf_siti.c2
-rw-r--r--libavfilter/vf_yadif_videotoolbox.m2
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,