avfilter/af_afir: Assert format

Maybe helps: CID1516805 Uninitialized scalar variable

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2024-06-10 14:53:44 +02:00
parent 8f9a6c4ea8
commit a5c815f937
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

View File

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