From 162e5a1121609ed62a1af4fcf261b749925945b1 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Fri, 12 Sep 2025 18:33:12 +0200 Subject: [PATCH] swresample/rematrix_template: Constify get_mix_any_func Reviewed-by: Michael Niedermayer Signed-off-by: Andreas Rheinhardt --- libswresample/rematrix_template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswresample/rematrix_template.c b/libswresample/rematrix_template.c index b70e7489b0..450a276663 100644 --- a/libswresample/rematrix_template.c +++ b/libswresample/rematrix_template.c @@ -105,7 +105,7 @@ static void RENAME(mix8to2)(uint8_t *const *out_, const uint8_t *const *in_, } } -static mix_any_func_type *RENAME(get_mix_any_func)(SwrContext *s) +static mix_any_func_type *RENAME(get_mix_any_func)(const SwrContext *s) { if ( !av_channel_layout_compare(&s->out_ch_layout, &(AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO) && ( !av_channel_layout_compare(&s->in_ch_layout, &(AVChannelLayout)AV_CHANNEL_LAYOUT_5POINT1)