Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-09-06 23:18:58 +0400
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2014-09-07 13:31:33 +0400
commit284123d7fd8e78a7daa948b662e65eda3b33fce2 (patch)
tree37bc8b226b66dca94476d4b9784fd1beb5883552 /libswresample/rematrix.c
parent2231d5b67185674ddd1703abf92ea0020f63ca04 (diff)
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/rematrix.c')
-rw-r--r--libswresample/rematrix.c4
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++;
}