mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-01 20:42:19 +00:00
avfilter/asrc_afirsrc: fix by one smaller allocation of buffer
This commit is contained in:
parent
0008e1c5d5
commit
4adb93dff0
@ -480,7 +480,7 @@ static av_cold int config_eq_output(AVFilterLink *outlink)
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
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)
|
if (!s->magnitude)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
memcpy(s->magnitude, eq_presets[s->preset].gains, sizeof(*s->magnitude) * s->nb_magnitude);
|
memcpy(s->magnitude, eq_presets[s->preset].gains, sizeof(*s->magnitude) * s->nb_magnitude);
|
||||||
|
Loading…
Reference in New Issue
Block a user