From 284123d7fd8e78a7daa948b662e65eda3b33fce2 Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Sat, 6 Sep 2014 21:18:58 +0200 Subject: Remove pointless if. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A branch to avoid some calculation seems unlikely to have any benefits. Signed-off-by: Reimar Döffinger --- libswresample/rematrix.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libswresample') diff --git a/libswresample/rematrix.c b/libswresample/rematrix.c index 62662f8368..5da3056ecc 100644 --- a/libswresample/rematrix.c +++ b/libswresample/rematrix.c @@ -304,9 +304,7 @@ av_cold static int auto_matrix(SwrContext *s) s->matrix[out_i][in_i]= matrix[i][j]; else s->matrix[out_i][in_i]= i == j && (in_ch_layout & out_ch_layout & (1ULL<matrix[out_i][in_i]){ - sum += fabs(s->matrix[out_i][in_i]); - } + sum += fabs(s->matrix[out_i][in_i]); if(in_ch_layout & (1ULL<