[FFmpeg-cvslog] avfilter: Constify non-const filters

Andreas Rheinhardt git at videolan.org
Fri Apr 1 22:30:41 EEST 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Apr  1 20:54:54 2022 +0200| [2b2380c098569af88e7a77aff78f330d11090512] | committer: 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: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2b2380c098569af88e7a77aff78f330d11090512
---

 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,



More information about the ffmpeg-cvslog mailing list