aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-03-30 22:15:21 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-14 12:20:15 +0200
commit8ce5038e9998e368729b222f3438da4163d339ae (patch)
tree273e43e420098dbd7c5a33b9568b59f4d94ee0e8
parent4ed0177e4a2ab9152beb1874b9241d6a44e5be9e (diff)
downloadffmpeg-8ce5038e9998e368729b222f3438da4163d339ae.tar.gz
avfilter/af_sofalizer: Fix bad shift
Fixes CID1396835 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 4064f3f0dfe71f6d378b9252a390f89c4315bf54) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavfilter/af_sofalizer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_sofalizer.c b/libavfilter/af_sofalizer.c
index 7558f57eb9..f41972508a 100644
--- a/libavfilter/af_sofalizer.c
+++ b/libavfilter/af_sofalizer.c
@@ -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;