From ac8ac10e3331ebd7188b2df905ad39103da8ee0e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 10 Jun 2024 14:53:44 +0200 Subject: [PATCH] avfilter/af_afir: Assert format Maybe helps: CID1516805 Uninitialized scalar variable Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer (cherry picked from commit a5c815f937a80d7689bc0f2deb3ac968f2630176) Signed-off-by: Michael Niedermayer --- libavfilter/af_afir.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavfilter/af_afir.c b/libavfilter/af_afir.c index 5d3f4070a7..1bc937a633 100644 --- a/libavfilter/af_afir.c +++ b/libavfilter/af_afir.c @@ -25,6 +25,7 @@ #include +#include "libavutil/avassert.h" #include "libavutil/cpu.h" #include "libavutil/tx.h" #include "libavutil/avstring.h" @@ -247,6 +248,8 @@ static int init_segment(AVFilterContext *ctx, AudioFIRSegment *seg, int selir, iscale.d = 1.0 / sqrt(2.0 * part_size); tx_type = AV_TX_DOUBLE_RDFT; break; + default: + av_assert1(0); } for (int ch = 0; ch < ctx->inputs[0]->ch_layout.nb_channels && part_size >= 1; ch++) {