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

James Almer jamrial at gmail.com
Fri Feb 17 21:55:04 EET 2023


Fixes ticket #10180

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

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
-- 
2.39.1



More information about the ffmpeg-devel mailing list