Commit 7ac12599 authored by Michael Niedermayer's avatar Michael Niedermayer

swresample: fix negative rematrix volumns

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e2b71846
......@@ -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++){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment