aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_pan.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2023-02-17 15:43:30 -0300
committerJames Almer <jamrial@gmail.com>2023-02-19 18:28:52 -0300
commit4561232b1a36b7f8532c7939e4a508734053f6f0 (patch)
tree35e2cae21d9a2e432b9a8cb85cc9d6391e094142 /libavfilter/af_pan.c
parent223c70cf1d8b816b59dede36a21492d7e8542e06 (diff)
downloadffmpeg-4561232b1a36b7f8532c7939e4a508734053f6f0.tar.gz
avfilter/af_pan: use the new swr used channel layout option
Fixes ticket #10180 Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/af_pan.c')
-rw-r--r--libavfilter/af_pan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_pan.c b/libavfilter/af_pan.c
index 067f646805..4672648d46 100644
--- a/libavfilter/af_pan.c
+++ b/libavfilter/af_pan.c
@@ -313,7 +313,7 @@ static int config_props(AVFilterLink *link)
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);
} else {
// renormalize