Browse Source

swr/auto_matrix: treat stereo downmix like stereo.

Based on code by John Stebbins
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 12 years ago
parent
commit
f8d74cbdc3
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libswresample/rematrix.c

+ 2
- 0
libswresample/rematrix.c View File

@@ -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;
}


Loading…
Cancel
Save