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

James Almer git at videolan.org
Sun Feb 19 23:30:34 EET 2023


ffmpeg | branch: release/6.0 | James Almer <jamrial at gmail.com> | Fri Feb 17 15:43:30 2023 -0300| [34a14038318939fffe7fed038282007faef96e80] | committer: James Almer

avfilter/af_pan: use the new swr used channel layout option

Fixes ticket #10180

Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit 4561232b1a36b7f8532c7939e4a508734053f6f0)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=34a14038318939fffe7fed038282007faef96e80
---

 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



More information about the ffmpeg-cvslog mailing list