Commit 555f352f authored by Michael Niedermayer's avatar Michael Niedermayer

swr/rematrix: fix C99 left shift overflow

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 014b178f
...@@ -158,7 +158,7 @@ av_cold static int auto_matrix(SwrContext *s) ...@@ -158,7 +158,7 @@ av_cold static int auto_matrix(SwrContext *s)
memset(s->matrix, 0, sizeof(s->matrix)); memset(s->matrix, 0, sizeof(s->matrix));
for(i=0; i<64; i++){ for(i=0; i<64; i++){
if(in_ch_layout & out_ch_layout & (1LL<<i)) if(in_ch_layout & out_ch_layout & (1ULL<<i))
matrix[i][i]= 1.0; matrix[i][i]= 1.0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment