swr/rematrix: fix C99 left shift overflow
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 14 Oct 2012 01:48:05 +0000 (03:48 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 14 Oct 2012 01:48:05 +0000 (03:48 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/rematrix.c

index 72da438..3115c99 100644 (file)
@@ -158,7 +158,7 @@ av_cold static int auto_matrix(SwrContext *s)
 
     memset(s->matrix, 0, sizeof(s->matrix));
     for(i=0; i<64; i++){
 
     memset(s->matrix, 0, sizeof(s->matrix));
     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;
     }