summaryrefslogtreecommitdiff
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:30:15 -0300
commit34a14038318939fffe7fed038282007faef96e80 (patch)
tree24ea5e11d16dafca94f5563d07880559da6453f2
parenta34b348328dd33d122ea772fc9f516e6aaef193e (diff)
downloadffmpeg-34a14038318939fffe7fed038282007faef96e80.tar.gz
avfilter/af_pan: use the new swr used channel layout option
Fixes ticket #10180 Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit 4561232b1a36b7f8532c7939e4a508734053f6f0)
-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