aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-06-10 14:53:44 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2024-07-07 23:36:29 +0200
commita5c815f937a80d7689bc0f2deb3ac968f2630176 (patch)
tree92280424754afc4b852fba2d31f406a090d74d89
parent8f9a6c4ea8de3e58f32622424c97203e6ba582c3 (diff)
downloadffmpeg-a5c815f937a80d7689bc0f2deb3ac968f2630176.tar.gz
avfilter/af_afir: Assert format
Maybe helps: CID1516805 Uninitialized scalar variable Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavfilter/af_afir.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/af_afir.c b/libavfilter/af_afir.c
index 24f8f8cbf1..4867bfba24 100644
--- a/libavfilter/af_afir.c
+++ b/libavfilter/af_afir.c
@@ -25,6 +25,7 @@
#include <float.h>
+#include "libavutil/avassert.h"
#include "libavutil/cpu.h"
#include "libavutil/mem.h"
#include "libavutil/tx.h"
@@ -230,6 +231,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++) {