summaryrefslogtreecommitdiff
path: root/libswresample
diff options
context:
space:
mode:
Diffstat (limited to 'libswresample')
-rw-r--r--libswresample/rematrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/rematrix.c b/libswresample/rematrix.c
index 33e2966fd3..f13c240feb 100644
--- a/libswresample/rematrix.c
+++ b/libswresample/rematrix.c
@@ -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++){