From 7ac12599fe3a26176eb06a844e1255fcc6e4989b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 22 Jul 2013 03:24:22 +0200 Subject: [PATCH] swresample: fix negative rematrix volumns Signed-off-by: Michael Niedermayer --- libswresample/rematrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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