diff mbox series

[FFmpeg-devel,1/3] avfilter/af_atilt: Constify filter

Message ID AM7PR03MB6660B74317481C48CA9526168FB39@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 8d0082bedae7cc3a4c3153a83c9ae94c74ae7431
Headers show
Series [FFmpeg-devel,1/3] avfilter/af_atilt: Constify filter | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Andreas Rheinhardt Oct. 9, 2021, 8:26 a.m. UTC
(It is actually UB if a declaration and its definition differ wrt
their types like they do in this case (the declaration in allfilters
is const).)

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavfilter/af_atilt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paul B Mahol Oct. 9, 2021, 11:03 a.m. UTC | #1
lgtm
diff mbox series

Patch

diff --git a/libavfilter/af_atilt.c b/libavfilter/af_atilt.c
index c8d55590c3..a1ce030feb 100644
--- a/libavfilter/af_atilt.c
+++ b/libavfilter/af_atilt.c
@@ -253,7 +253,7 @@  static const AVFilterPad outputs[] = {
     },
 };
 
-AVFilter ff_af_atilt = {
+const AVFilter ff_af_atilt = {
     .name            = "atilt",
     .description     = NULL_IF_CONFIG_SMALL("Apply spectral tilt to audio."),
     .priv_size       = sizeof(ATiltContext),