Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-07-22 05:24:22 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-07-22 05:24:22 +0400
commit7ac12599fe3a26176eb06a844e1255fcc6e4989b (patch)
treea9479f31b92c00f9bb209482864b761dccea42aa /libswresample/rematrix.c
parente2b718464e92fcde3d21c6653c88ddec2ab21c3f (diff)
swresample: fix negative rematrix volumns
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/rematrix.c')
-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++){