diff mbox series

[FFmpeg-devel,3/3] avfilter/af_pan: use the new swr used channel layout option

Message ID 20230217195504.43368-3-jamrial@gmail.com
State Accepted
Commit 4561232b1a36b7f8532c7939e4a508734053f6f0
Headers show
Series [FFmpeg-devel,1/3] doc/resampler.texi: add missing swr channel layout options | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

James Almer Feb. 17, 2023, 7:55 p.m. UTC
Fixes ticket #10180

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavfilter/af_pan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paul B Mahol Feb. 17, 2023, 8:08 p.m. UTC | #1
set LGTM
diff mbox series

Patch

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