Browse Source

swresample: fix negative rematrix volumns

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.1
Michael Niedermayer 12 years ago
parent
commit
7ac12599fe
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libswresample/rematrix.c

+ 1
- 1
libswresample/rematrix.c View File

@@ -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…
Cancel
Save