avfilter/asrc_sinc: check allocation return value

This commit is contained in:
Paul B Mahol 2022-03-03 22:54:33 +01:00
parent f4d123341c
commit 99f7f4144a

View File

@ -113,6 +113,9 @@ static float *make_lpf(int num_taps, float Fc, float beta, float rho,
float *h = av_calloc(num_taps, sizeof(*h)), sum = 0;
float mult = scale / bessel_I_0(beta), mult1 = 1.f / (.5f * m + rho);
if (!h)
return NULL;
av_assert0(Fc >= 0 && Fc <= 1);
for (i = 0; i <= m / 2; i++) {