lavfi/pan: use extended_data instead of data.

Fix trac ticket #3380.
This commit is contained in:
Nicolas George 2014-02-11 15:15:58 +01:00
parent b9936e59e8
commit 6c27aea811
1 changed files with 2 additions and 1 deletions

View File

@ -370,7 +370,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
if (!outsamples) if (!outsamples)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
swr_convert(pan->swr, outsamples->data, n, (void *)insamples->data, n); swr_convert(pan->swr, outsamples->extended_data, n,
(void *)insamples->extended_data, n);
av_frame_copy_props(outsamples, insamples); av_frame_copy_props(outsamples, insamples);
outsamples->channel_layout = outlink->channel_layout; outsamples->channel_layout = outlink->channel_layout;
av_frame_set_channels(outsamples, outlink->channels); av_frame_set_channels(outsamples, outlink->channels);