[FFmpeg-cvslog] avfilter/af_rubberband: use correct array for multichannels
Paul B Mahol
git at videolan.org
Thu Mar 30 15:25:36 EEST 2023
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Mar 30 14:06:45 2023 +0200| [b75159682a5838a53b436da5535daabfe1b66595] | committer: Paul B Mahol
avfilter/af_rubberband: use correct array for multichannels
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b75159682a5838a53b436da5535daabfe1b66595
---
libavfilter/af_rubberband.c | 4 ++--
1 file 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;
More information about the ffmpeg-cvslog
mailing list