summaryrefslogtreecommitdiff
path: root/libswresample
diff options
context:
space:
mode:
Diffstat (limited to 'libswresample')
-rw-r--r--libswresample/rematrix.c2
1 files changed, 2 insertions, 0 deletions
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;
}