Browse Source

Remove pointless if.

A branch to avoid some calculation seems unlikely to have any benefits.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
tags/n2.4
Reimar Döffinger 11 years ago
parent
commit
284123d7fd
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      libswresample/rematrix.c

+ 1
- 3
libswresample/rematrix.c View File

@@ -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++;
}


Loading…
Cancel
Save