[FFmpeg-cvslog] swr/rematrix: fix C99 left shift overflow

Michael Niedermayer git at videolan.org
Sun Oct 14 04:08:21 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Oct 14 03:48:05 2012 +0200| [555f352f99317b141f109716524b5a2aace91316] | committer: Michael Niedermayer

swr/rematrix: fix C99 left shift overflow

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=555f352f99317b141f109716524b5a2aace91316
---

 libswresample/rematrix.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswresample/rematrix.c b/libswresample/rematrix.c
index 72da438..3115c99 100644
--- a/libswresample/rematrix.c
+++ b/libswresample/rematrix.c
@@ -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++){
-        if(in_ch_layout & out_ch_layout & (1LL<<i))
+        if(in_ch_layout & out_ch_layout & (1ULL<<i))
             matrix[i][i]= 1.0;
     }
 



More information about the ffmpeg-cvslog mailing list