mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
swr: update rematrix coeffs to match AC-3
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
323d912010
commit
2dd2e42951
@ -150,8 +150,13 @@ static int auto_matrix(SwrContext *s)
|
||||
|
||||
if(unaccounted & AV_CH_FRONT_CENTER){
|
||||
if((s->out_ch_layout & AV_CH_LAYOUT_STEREO) == AV_CH_LAYOUT_STEREO){
|
||||
matrix[ FRONT_LEFT][FRONT_CENTER]+= M_SQRT1_2;
|
||||
matrix[FRONT_RIGHT][FRONT_CENTER]+= M_SQRT1_2;
|
||||
if(s->in_ch_layout & AV_CH_LAYOUT_STEREO) {
|
||||
matrix[ FRONT_LEFT][FRONT_CENTER]+= s->clev;
|
||||
matrix[FRONT_RIGHT][FRONT_CENTER]+= s->clev;
|
||||
} else {
|
||||
matrix[ FRONT_LEFT][FRONT_CENTER]+= M_SQRT1_2;
|
||||
matrix[FRONT_RIGHT][FRONT_CENTER]+= M_SQRT1_2;
|
||||
}
|
||||
}else
|
||||
av_assert0(0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user