mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
swresample: fix negative rematrix volumns
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e2b718464e
commit
7ac12599fe
@ -313,7 +313,7 @@ av_cold static int auto_matrix(SwrContext *s)
|
||||
} else
|
||||
maxval = INT_MAX;
|
||||
|
||||
if(maxcoef > maxval){
|
||||
if(maxcoef > maxval || s->rematrix_volume < 0){
|
||||
maxcoef /= maxval;
|
||||
for(i=0; i<SWR_CH_MAX; i++)
|
||||
for(j=0; j<SWR_CH_MAX; j++){
|
||||
|
Loading…
Reference in New Issue
Block a user