avfilter/af_sofalizer: avoid casting
authorPaul B Mahol <onemda@gmail.com>
Thu, 18 May 2017 20:49:04 +0000 (22:49 +0200)
committerPaul B Mahol <onemda@gmail.com>
Thu, 18 May 2017 20:49:04 +0000 (22:49 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/af_sofalizer.c

index 252f524..622eac5 100644 (file)
@@ -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;