From 8dfd5ac84171d591665f069ec935bdf7b8b69936 Mon Sep 17 00:00:00 2001 From: Pavel Koshevoy Date: Wed, 29 Jan 2025 20:24:42 -0700 Subject: [PATCH] libswr/rematrix: Do no require AV_CHANNEL_ORDER_NATIVE from sane_layout --- libswresample/rematrix.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libswresample/rematrix.c b/libswresample/rematrix.c index b9bf4dcac0..f8d77db21f 100644 --- a/libswresample/rematrix.c +++ b/libswresample/rematrix.c @@ -104,8 +104,6 @@ static int clean_layout(AVChannelLayout *out, const AVChannelLayout *in, void *s } static int sane_layout(AVChannelLayout *ch_layout) { - if (ch_layout->order != AV_CHANNEL_ORDER_NATIVE) - return 0; if(!av_channel_layout_subset(ch_layout, AV_CH_LAYOUT_SURROUND)) // at least 1 front speaker return 0; if(!even(av_channel_layout_subset(ch_layout, (AV_CH_FRONT_LEFT | AV_CH_FRONT_RIGHT)))) // no asymetric front -- 2.43.0