avfilter/af_afir: Assert format
Maybe helps: CID1516805 Uninitialized scalar variable Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit a5c815f937a80d7689bc0f2deb3ac968f2630176) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
40b801870d
commit
ac8ac10e33
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
|
||||||
|
#include "libavutil/avassert.h"
|
||||||
#include "libavutil/cpu.h"
|
#include "libavutil/cpu.h"
|
||||||
#include "libavutil/tx.h"
|
#include "libavutil/tx.h"
|
||||||
#include "libavutil/avstring.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);
|
iscale.d = 1.0 / sqrt(2.0 * part_size);
|
||||||
tx_type = AV_TX_DOUBLE_RDFT;
|
tx_type = AV_TX_DOUBLE_RDFT;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
av_assert1(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int ch = 0; ch < ctx->inputs[0]->ch_layout.nb_channels && part_size >= 1; ch++) {
|
for (int ch = 0; ch < ctx->inputs[0]->ch_layout.nb_channels && part_size >= 1; ch++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user