History

avfilter/af_channelmap: do not override set channel layout

Paul B Mahol committed 2 years ago

Commit 37c5bcc1 parent bbdedd91 file · +1 −1Browse files

Unified · Split

libavfilter/af_channelmap.c+1−1
@@ -230,7 +230,7 @@ static av_cold int channelmap_init(AVFilterContext *ctx) · 229 unmodified lines
230230 s->nch = map_entries;
231231 if (out_ch_mask)
232232 av_channel_layout_from_mask(&s->output_layout, out_ch_mask);
233− else if (map_entries)
233+ else if (map_entries && s->output_layout.nb_channels == 0)
234234 av_channel_layout_default(&s->output_layout, map_entries);
235235
236236 if (mode == MAP_NONE) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t