Skip to content

Commit

Permalink
Remove pointless if.
Browse files Browse the repository at this point in the history
A branch to avoid some calculation seems unlikely to have any benefits.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
  • Loading branch information
rdoeffinger committed Sep 7, 2014
1 parent 2231d5b commit 284123d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libswresample/rematrix.c
Expand Up @@ -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<<i));
if(s->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<<j))
in_i++;
}
Expand Down

0 comments on commit 284123d

Please sign in to comment.