Skip to content
Snippets Groups Projects
Commit f8d74cbd authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

swr/auto_matrix: treat stereo downmix like stereo.


Based on code by John Stebbins
Signed-off-by: default avatarMichael Niedermayer <michaelni@gmx.at>
parent c8ffab06
No related branches found
No related tags found
No related merge requests found
...@@ -103,6 +103,8 @@ static int even(int64_t layout){ ...@@ -103,6 +103,8 @@ static int even(int64_t layout){
} }
static int clean_layout(SwrContext *s, 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; return layout;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment