diff options
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_aresample.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/af_aresample.c b/libavfilter/af_aresample.c index e33620ac79..e3a88ff8a7 100644 --- a/libavfilter/af_aresample.c +++ b/libavfilter/af_aresample.c @@ -169,8 +169,8 @@ static void filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamplesref AVFilterLink *const outlink = inlink->dst->outputs[0]; AVFilterBufferRef *outsamplesref = ff_get_audio_buffer(outlink, AV_PERM_WRITE, n_out); - n_out = swr_convert(aresample->swr, outsamplesref->data, n_out, - (void *)insamplesref->data, n_in); + n_out = swr_convert(aresample->swr, outsamplesref->extended_data, n_out, + (void *)insamplesref->extended_data, n_in); if (n_out <= 0) { avfilter_unref_buffer(outsamplesref); avfilter_unref_buffer(insamplesref); @@ -210,7 +210,7 @@ static int request_frame(AVFilterLink *outlink) outsamplesref = ff_get_audio_buffer(outlink, AV_PERM_WRITE, n_out); if (!outsamplesref) return AVERROR(ENOMEM); - n_out = swr_convert(aresample->swr, outsamplesref->data, n_out, 0, 0); + n_out = swr_convert(aresample->swr, outsamplesref->extended_data, n_out, 0, 0); if (n_out <= 0) { avfilter_unref_buffer(outsamplesref); return (n_out == 0) ? AVERROR_EOF : n_out; |