diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2014-09-06 21:18:58 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2014-09-07 11:31:33 +0200 |
commit | 284123d7fd8e78a7daa948b662e65eda3b33fce2 (patch) | |
tree | 37bc8b226b66dca94476d4b9784fd1beb5883552 /libswresample | |
parent | 2231d5b67185674ddd1703abf92ea0020f63ca04 (diff) | |
download | ffmpeg-284123d7fd8e78a7daa948b662e65eda3b33fce2.tar.gz |
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>
Diffstat (limited to 'libswresample')
-rw-r--r-- | libswresample/rematrix.c | 4 |
1 files changed, 1 insertions, 3 deletions
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<<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++; } |