[FFmpeg-cvslog] avfilter/af_sofalizer: avoid casting

Paul B Mahol git at videolan.org
Fri May 19 00:16:04 EEST 2017


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu May 18 22:49:04 2017 +0200| [79bf4d1450c105ecbe2b8ef64ca6c14bbdd761dc] | committer: Paul B Mahol

avfilter/af_sofalizer: avoid casting

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=79bf4d1450c105ecbe2b8ef64ca6c14bbdd761dc
---

 libavfilter/af_sofalizer.c | 4 ++--
 1 file 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;



More information about the ffmpeg-cvslog mailing list