[FFmpeg-cvslog] af_aresample: use extended_data
Michael Niedermayer
git at videolan.org
Sat May 19 19:28:57 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat May 19 18:46:25 2012 +0200| [e17a039647dd674f2397b54486abb2236da93b4a] | committer: Michael Niedermayer
af_aresample: use extended_data
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e17a039647dd674f2397b54486abb2236da93b4a
---
libavfilter/af_aresample.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavfilter/af_aresample.c b/libavfilter/af_aresample.c
index e33620a..e3a88ff 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;
More information about the ffmpeg-cvslog
mailing list