avfilter/af_sofalizer: Fix bad shift
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 30 Mar 2017 20:15:21 +0000 (22:15 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 14 May 2017 10:20:15 +0000 (12:20 +0200)
Fixes CID1396835

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 4064f3f0dfe71f6d378b9252a390f89c4315bf54)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/af_sofalizer.c

index 7558f57..f419725 100644 (file)
@@ -448,7 +448,7 @@ static int get_speaker_pos(AVFilterContext *ctx,
 
     /* set speaker positions according to input channel configuration: */
     for (m = 0, ch = 0; ch < n_conv && m < 64; m++) {
-        uint64_t mask = channels_layout & (1 << m);
+        uint64_t mask = channels_layout & (1ULL << m);
 
         switch (mask) {
         case AV_CH_FRONT_LEFT:            azim[ch] =  30;      break;