mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-12 18:25:03 +00:00
avfilter/asrc_sinc: check allocation return value
This commit is contained in:
parent
f4d123341c
commit
99f7f4144a
@ -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 *h = av_calloc(num_taps, sizeof(*h)), sum = 0;
|
||||||
float mult = scale / bessel_I_0(beta), mult1 = 1.f / (.5f * m + rho);
|
float mult = scale / bessel_I_0(beta), mult1 = 1.f / (.5f * m + rho);
|
||||||
|
|
||||||
|
if (!h)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
av_assert0(Fc >= 0 && Fc <= 1);
|
av_assert0(Fc >= 0 && Fc <= 1);
|
||||||
|
|
||||||
for (i = 0; i <= m / 2; i++) {
|
for (i = 0; i <= m / 2; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user