Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
mod_filtering: replace use of deprecated av_mallocz_array() with av_c…
Browse files Browse the repository at this point in the history
…alloc()
  • Loading branch information
mbouron authored and mbouron-gpsw committed Mar 30, 2022
1 parent 66e63a3 commit e13d122
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mod_filtering.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,8 @@ int sxpi_filtering_init(void *log_ctx,
return AVERROR(ENOMEM);
}

ctx->rdft_data[0] = av_mallocz_array(AUDIO_NBSAMPLES, sizeof(*ctx->rdft_data[0]));
ctx->rdft_data[1] = av_mallocz_array(AUDIO_NBSAMPLES, sizeof(*ctx->rdft_data[1]));
ctx->rdft_data[0] = av_calloc(AUDIO_NBSAMPLES, sizeof(*ctx->rdft_data[0]));
ctx->rdft_data[1] = av_calloc(AUDIO_NBSAMPLES, sizeof(*ctx->rdft_data[1]));
if (!ctx->rdft_data[0] || !ctx->rdft_data[1])
return AVERROR(ENOMEM);
}
Expand Down

0 comments on commit e13d122

Please sign in to comment.