You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
swresample: fix negative rematrix volumns
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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++){
|
||||
|
Reference in New Issue
Block a user