[FFmpeg-cvslog] avfilter/af_afir: Assert format

Michael Niedermayer git at videolan.org
Mon Jul 8 00:39:49 EEST 2024


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Jun 10 14:53:44 2024 +0200| [a5c815f937a80d7689bc0f2deb3ac968f2630176] | committer: Michael Niedermayer

avfilter/af_afir: Assert format

Maybe helps: CID1516805 Uninitialized scalar variable

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a5c815f937a80d7689bc0f2deb3ac968f2630176
---

 libavfilter/af_afir.c | 3 +++
 1 file changed, 3 insertions(+)

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++) {



More information about the ffmpeg-cvslog mailing list