mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
avfilter/avfiltergraph: fix regression in picking channel layout
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 1b3f4842c1)
This commit is contained in:
parent
24de8a98cf
commit
ccbd089467
1 changed files with 2 additions and 2 deletions
|
|
@ -1067,8 +1067,8 @@ static void swap_channel_layouts_on_filter(AVFilterContext *filter)
|
|||
}
|
||||
|
||||
/* no penalty for LFE channel mismatch */
|
||||
if (av_channel_layout_channel_from_index(&in_chlayout, AV_CHAN_LOW_FREQUENCY) >= 0 &&
|
||||
av_channel_layout_channel_from_index(&out_chlayout, AV_CHAN_LOW_FREQUENCY) >= 0)
|
||||
if (av_channel_layout_index_from_channel(&in_chlayout, AV_CHAN_LOW_FREQUENCY) >= 0 &&
|
||||
av_channel_layout_index_from_channel(&out_chlayout, AV_CHAN_LOW_FREQUENCY) >= 0)
|
||||
score += 10;
|
||||
av_channel_layout_from_mask(&in_chlayout, av_channel_layout_subset(&in_chlayout, ~AV_CH_LOW_FREQUENCY));
|
||||
av_channel_layout_from_mask(&out_chlayout, av_channel_layout_subset(&out_chlayout, ~AV_CH_LOW_FREQUENCY));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue