aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_sofalizer.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2017-05-18 22:49:04 +0200
committerPaul B Mahol <onemda@gmail.com>2017-05-18 22:49:04 +0200
commit79bf4d1450c105ecbe2b8ef64ca6c14bbdd761dc (patch)
treeaa602604c3ae1ae8a559e27007c591556870b639 /libavfilter/af_sofalizer.c
parente434840fd4b3c854beec845f950b80bc1bf93b60 (diff)
downloadffmpeg-79bf4d1450c105ecbe2b8ef64ca6c14bbdd761dc.tar.gz
avfilter/af_sofalizer: avoid casting
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter/af_sofalizer.c')
-rw-r--r--libavfilter/af_sofalizer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/af_sofalizer.c b/libavfilter/af_sofalizer.c
index 252f524c23..622eac577c 100644
--- a/libavfilter/af_sofalizer.c
+++ b/libavfilter/af_sofalizer.c
@@ -383,13 +383,13 @@ static int parse_channel_name(char **arg, int *rchannel, char *buf)
layout0 = layout = av_get_channel_layout(buf);
/* channel_id <- first set bit in layout */
for (i = 32; i > 0; i >>= 1) {
- if (layout >= (int64_t)1 << i) {
+ if (layout >= 1LL << i) {
channel_id += i;
layout >>= i;
}
}
/* reject layouts that are not a single channel */
- if (channel_id >= 64 || layout0 != (int64_t)1 << channel_id)
+ if (channel_id >= 64 || layout0 != 1LL << channel_id)
return AVERROR(EINVAL);
*rchannel = channel_id;
*arg += len;