aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-02-16 17:12:25 +0100
committerPaul B Mahol <onemda@gmail.com>2022-02-16 17:28:14 +0100
commit52218c0322d422fd43c5d804c2cb7e447cb07836 (patch)
tree787b16b8eb08adf955d5b68189ca3931d9a9092c
parent18ad9fb0c55674fda3a33203532a8d12877ff0fc (diff)
downloadffmpeg-52218c0322d422fd43c5d804c2cb7e447cb07836.tar.gz
avfilter/af_superequalizer: stop extending last frame duration
-rw-r--r--libavfilter/af_superequalizer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/af_superequalizer.c b/libavfilter/af_superequalizer.c
index 58ad85653d..420bb7019c 100644
--- a/libavfilter/af_superequalizer.c
+++ b/libavfilter/af_superequalizer.c
@@ -195,7 +195,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
float *fsamples = s->fsamples;
int ch, i;
- AVFrame *out = ff_get_audio_buffer(outlink, s->winlen);
+ AVFrame *out = ff_get_audio_buffer(outlink, in->nb_samples);
float *src, *dst, *ptr;
if (!out) {
@@ -231,7 +231,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
dst[i] += fsamples[i] / s->tabsize;
for (i = s->winlen; i < s->tabsize; i++)
dst[i] = fsamples[i] / s->tabsize;
- for (i = 0; i < s->winlen; i++)
+ for (i = 0; i < out->nb_samples; i++)
ptr[i] = dst[i];
for (i = 0; i < s->winlen; i++)
dst[i] = dst[i+s->winlen];