Skip to content

Commit 1b3f484

Browse files
richardpljamrial
authored andcommitted
avfilter/avfiltergraph: fix regression in picking channel layout
Signed-off-by: James Almer <[email protected]>
1 parent 8eae65d commit 1b3f484

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libavfilter/avfiltergraph.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,8 +1068,8 @@ static void swap_channel_layouts_on_filter(AVFilterContext *filter)
10681068
}
10691069

10701070
/* no penalty for LFE channel mismatch */
1071-
if (av_channel_layout_channel_from_index(&in_chlayout, AV_CHAN_LOW_FREQUENCY) >= 0 &&
1072-
av_channel_layout_channel_from_index(&out_chlayout, AV_CHAN_LOW_FREQUENCY) >= 0)
1071+
if (av_channel_layout_index_from_channel(&in_chlayout, AV_CHAN_LOW_FREQUENCY) >= 0 &&
1072+
av_channel_layout_index_from_channel(&out_chlayout, AV_CHAN_LOW_FREQUENCY) >= 0)
10731073
score += 10;
10741074
av_channel_layout_from_mask(&in_chlayout, av_channel_layout_subset(&in_chlayout, ~AV_CH_LOW_FREQUENCY));
10751075
av_channel_layout_from_mask(&out_chlayout, av_channel_layout_subset(&out_chlayout, ~AV_CH_LOW_FREQUENCY));

0 commit comments

Comments
 (0)