mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
parent
b9936e59e8
commit
6c27aea811
@ -370,7 +370,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
|
||||
|
||||
if (!outsamples)
|
||||
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);
|
||||
outsamples->channel_layout = outlink->channel_layout;
|
||||
av_frame_set_channels(outsamples, outlink->channels);
|
||||
|
Loading…
Reference in New Issue
Block a user