From f8d74cbdc39726965723ff81ccb10a841d5ab8a4 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 8 Sep 2012 21:11:45 +0200 Subject: swr/auto_matrix: treat stereo downmix like stereo. Based on code by John Stebbins Signed-off-by: Michael Niedermayer --- libswresample/rematrix.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libswresample') diff --git a/libswresample/rematrix.c b/libswresample/rematrix.c index a8d5fde00c..c4c218de54 100644 --- a/libswresample/rematrix.c +++ b/libswresample/rematrix.c @@ -103,6 +103,8 @@ static int even(int64_t layout){ } static int clean_layout(SwrContext *s, int64_t layout){ + if((layout & AV_CH_LAYOUT_STEREO_DOWNMIX) == AV_CH_LAYOUT_STEREO_DOWNMIX) + return AV_CH_LAYOUT_STEREO; return layout; } -- cgit v1.2.3