[FFmpeg-cvslog] avfilter/af_aecho & af_compand: use extended_data
Paul B Mahol
git at videolan.org
Sun Sep 15 14:11:26 CEST 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Sep 15 12:10:12 2013 +0000| [60abdb6c17ea87753b37fa83b85d9419b33195c8] | committer: Paul B Mahol
avfilter/af_aecho & af_compand: use extended_data
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=60abdb6c17ea87753b37fa83b85d9419b33195c8
---
libavfilter/af_aecho.c | 4 ++--
libavfilter/af_compand.c | 10 +++++-----
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/libavfilter/af_aecho.c b/libavfilter/af_aecho.c
index 4779f7b..0c3ba2f 100644
--- a/libavfilter/af_aecho.c
+++ b/libavfilter/af_aecho.c
@@ -282,7 +282,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
av_frame_copy_props(out_frame, frame);
}
- s->echo_samples(s, s->delayptrs, frame->data, out_frame->data,
+ s->echo_samples(s, s->delayptrs, frame->extended_data, out_frame->extended_data,
frame->nb_samples, inlink->channels);
if (frame != out_frame)
@@ -314,7 +314,7 @@ static int request_frame(AVFilterLink *outlink)
outlink->channels,
frame->format);
- s->echo_samples(s, s->delayptrs, frame->data, frame->data,
+ s->echo_samples(s, s->delayptrs, frame->extended_data, frame->extended_data,
frame->nb_samples, outlink->channels);
frame->pts = s->next_pts;
diff --git a/libavfilter/af_compand.c b/libavfilter/af_compand.c
index 85fb21d..586ac2f 100644
--- a/libavfilter/af_compand.c
+++ b/libavfilter/af_compand.c
@@ -190,8 +190,8 @@ static int compand_nodelay(AVFilterContext *ctx, AVFrame *frame)
}
for (chan = 0; chan < channels; chan++) {
- const double *src = (double *)frame->data[chan];
- double *dst = (double *)out_frame->data[chan];
+ const double *src = (double *)frame->extended_data[chan];
+ double *dst = (double *)out_frame->extended_data[chan];
ChanParam *cp = &s->channels[chan];
for (i = 0; i < nb_samples; i++) {
@@ -221,7 +221,7 @@ static int compand_delay(AVFilterContext *ctx, AVFrame *frame)
av_assert1(channels > 0); /* would corrupt delay_count and delay_index */
for (chan = 0; chan < channels; chan++) {
- const double *src = (double *)frame->data[chan];
+ const double *src = (double *)frame->extended_data[chan];
double *dbuf = (double *)s->delayptrs[chan];
ChanParam *cp = &s->channels[chan];
double *dst;
@@ -242,7 +242,7 @@ static int compand_delay(AVFilterContext *ctx, AVFrame *frame)
s->pts += av_rescale_q(nb_samples - i, (AVRational){1, inlink->sample_rate}, inlink->time_base);
}
- dst = (double *)out_frame->data[chan];
+ dst = (double *)out_frame->extended_data[chan];
dst[oindex++] = av_clipd(dbuf[dindex] * get_volume(s, cp->volume), -1, 1);
} else {
count++;
@@ -276,7 +276,7 @@ static int compand_drain(AVFilterLink *outlink)
for (chan = 0; chan < channels; chan++) {
double *dbuf = (double *)s->delayptrs[chan];
- double *dst = (double *)frame->data[chan];
+ double *dst = (double *)frame->extended_data[chan];
ChanParam *cp = &s->channels[chan];
dindex = s->delay_index;
More information about the ffmpeg-cvslog
mailing list