Skip to content
Snippets Groups Projects
Commit 284123d7 authored by Reimar Döffinger's avatar Reimar Döffinger
Browse files

Remove pointless if.


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

Signed-off-by: default avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
parent 2231d5b6
No related branches found
No related tags found
No related merge requests found
......@@ -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++;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment