[FFmpeg-devel] [PATCH 2/3] avfilter/af_afir: Assert format
Michael Niedermayer
michael at niedermayer.cc
Mon Jun 10 22:09:55 EEST 2024
Maybe helps: CID1516805 Uninitialized scalar variable
Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavfilter/af_afir.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavfilter/af_afir.c b/libavfilter/af_afir.c
index 24f8f8cbf1c..4867bfba24b 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++) {
--
2.45.2
More information about the ffmpeg-devel
mailing list