aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-03-30 14:06:45 +0200
committerPaul B Mahol <onemda@gmail.com>2023-03-30 14:08:52 +0200
commitb75159682a5838a53b436da5535daabfe1b66595 (patch)
tree4b544b1254973d676f8752f5b50d457e8238386d /libavfilter
parent4d216654ca72dfd23fcafcc5195db0eb9bdd483b (diff)
downloadffmpeg-b75159682a5838a53b436da5535daabfe1b66595.tar.gz
avfilter/af_rubberband: use correct array for multichannels
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/af_rubberband.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/af_rubberband.c b/libavfilter/af_rubberband.c
index 34a1605667..c56bf5d82f 100644
--- a/libavfilter/af_rubberband.c
+++ b/libavfilter/af_rubberband.c
@@ -100,7 +100,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
if (s->first_pts == AV_NOPTS_VALUE)
s->first_pts = in->pts;
- rubberband_process(s->rbs, (const float *const *)in->data, in->nb_samples, ff_outlink_get_status(inlink));
+ rubberband_process(s->rbs, (const float *const *)in->extended_data, in->nb_samples, ff_outlink_get_status(inlink));
s->nb_samples_in += in->nb_samples;
nb_samples = rubberband_available(s->rbs);
@@ -113,7 +113,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
out->pts = s->first_pts + av_rescale_q(s->nb_samples_out,
(AVRational){ 1, outlink->sample_rate },
outlink->time_base);
- nb_samples = rubberband_retrieve(s->rbs, (float *const *)out->data, nb_samples);
+ nb_samples = rubberband_retrieve(s->rbs, (float *const *)out->extended_data, nb_samples);
out->nb_samples = nb_samples;
ret = ff_filter_frame(outlink, out);
s->nb_samples_out += nb_samples;