mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-19 14:00:43 +00: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