You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avfilter/af_pan: use the new swr used channel layout option
Fixes ticket #10180 Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -313,7 +313,7 @@ static int config_props(AVFilterLink *link)
|
|||||||
pan->channel_map[i] = ch_id;
|
pan->channel_map[i] = ch_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
av_opt_set_int(pan->swr, "uch", pan->nb_output_channels, 0);
|
av_opt_set_chlayout(pan->swr, "uchl", &pan->out_channel_layout, 0);
|
||||||
swr_set_channel_mapping(pan->swr, pan->channel_map);
|
swr_set_channel_mapping(pan->swr, pan->channel_map);
|
||||||
} else {
|
} else {
|
||||||
// renormalize
|
// renormalize
|
||||||
|
Reference in New Issue
Block a user