diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-11-23 14:58:35 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-11-23 15:01:55 +0100 |
commit | 4adb93dff05dd947878c67784d98c9a4e13b57a7 (patch) | |
tree | 4c37c1ad2aeb93850069c552977e4a5b924c0ab9 /libavfilter/asrc_afirsrc.c | |
parent | 0008e1c5d5fff3ddc06c74e0c5b627e8ad2eeb17 (diff) | |
download | ffmpeg-4adb93dff05dd947878c67784d98c9a4e13b57a7.tar.gz |
avfilter/asrc_afirsrc: fix by one smaller allocation of buffer
Diffstat (limited to 'libavfilter/asrc_afirsrc.c')
-rw-r--r-- | libavfilter/asrc_afirsrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/asrc_afirsrc.c b/libavfilter/asrc_afirsrc.c index e2359c159f..ea04c35759 100644 --- a/libavfilter/asrc_afirsrc.c +++ b/libavfilter/asrc_afirsrc.c @@ -480,7 +480,7 @@ static av_cold int config_eq_output(AVFilterLink *outlink) if (ret < 0) return ret; - s->magnitude = av_calloc(s->nb_magnitude, sizeof(*s->magnitude)); + s->magnitude = av_calloc(s->nb_magnitude + 1, sizeof(*s->magnitude)); if (!s->magnitude) return AVERROR(ENOMEM); memcpy(s->magnitude, eq_presets[s->preset].gains, sizeof(*s->magnitude) * s->nb_magnitude); |