diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-05-18 23:49:04 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-05-18 23:49:04 +0300 |
commit | 79bf4d1450c105ecbe2b8ef64ca6c14bbdd761dc (patch) | |
tree | aa602604c3ae1ae8a559e27007c591556870b639 /libavfilter | |
parent | e434840fd4b3c854beec845f950b80bc1bf93b60 (diff) |
avfilter/af_sofalizer: avoid casting
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_sofalizer.c | 4 |
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; |