diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-09-15 12:10:12 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-09-15 12:10:12 +0000 |
commit | 60abdb6c17ea87753b37fa83b85d9419b33195c8 (patch) | |
tree | 18694b7239066997e660c690f074d8bf035fd085 /libavfilter/af_compand.c | |
parent | a06e20888dbc70490e5916a106b4394a5f4d5d2b (diff) |
avfilter/af_aecho & af_compand: use extended_data
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/af_compand.c')
-rw-r--r-- | libavfilter/af_compand.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavfilter/af_compand.c b/libavfilter/af_compand.c index 85fb21dcd6..586ac2f5d4 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; |