From patchwork Mon Apr 29 14:47:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul B Mahol X-Patchwork-Id: 12940 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id D7963441698 for ; Mon, 29 Apr 2019 18:11:37 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 063CA687EEA; Mon, 29 Apr 2019 17:55:17 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 39E036807D4 for ; Mon, 29 Apr 2019 17:55:11 +0300 (EEST) Received: by mail-wm1-f68.google.com with SMTP id y197so16274974wmd.0 for ; Mon, 29 Apr 2019 07:55:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=BVV9HOc8AImIBMPFd51DfgO9MpFtJvDX/tyuEw526xo=; b=ujBvK6YtC06vhHY+PcFx7kI0fdCIkJeiwjbolwI1z0Pz8mNNAE+2qgODUNy8VxYLFV BDHbvJZZapoflKNDe1nERzF/TtZmQAaqSOXstRo1h0iRB+sJlmIosh5FTFWh3GEM/lb7 9ilqoqR3DevdGqAShY26IpsIvbr1k7vkJnMaA4MjGjaJpd27GdnH4TAhPfKW49SY26bL +Q/01A5NLnwSgGRhSBH8DG2Q629SmcCjSuic9mJgDUiE8qy4H/omQ2kwbIfbAPXCDu51 7K10Y1IrJzk6yw35CSBT4+++aEzZdVm2OeioEQqrgA94pMG72B5S5tzAyT4vG4PL2L46 ODkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=BVV9HOc8AImIBMPFd51DfgO9MpFtJvDX/tyuEw526xo=; b=q4aXjPigouLrSUkdKVC5wE5XgJvzf5HSRiil2ms+qBvx7A4Ob4JC9P3zoZ2v7VAZ+V l1LehzpmA9ixStANQdBgV962tZqF98HV4F5C/7trVpBdrlLNdS3x7mnIeE9TzBEYNNXE U8ndPjFmw4/aFb0Fguh8t4swNpIXseNLF8E0R9pp6bjy1tE1FJEh3yovtmcOmlox4CjQ CqdiAWYDcYk7T07HEF8uX24oNuosLJVhBqcvCWtyarcU61hTakQ1Sum9IvUHJABlgFxs 5eU7Hzu8h/ViIR1ie2pWoEvx+sQOFlnI/3tKJG2Ot2rsTZpvkJYXoLp/4n3FlMrdYOqZ pW+A== X-Gm-Message-State: APjAAAWA/1hU3WZV0E7EEhonYWi4ZUEOVyU0cjXEdK0EZVW6mNC0I483 Rdew1k1wknamMmO8YEI4sUuLL1wO X-Google-Smtp-Source: APXvYqwSV38FOGcQ7Koik194TPKcvLw7AF5eJfAU92FbmVeYJqsguWf2rgggNMUz57P1D/hdZ1/Ppg== X-Received: by 2002:a1c:3104:: with SMTP id x4mr17915671wmx.23.1556549281734; Mon, 29 Apr 2019 07:48:01 -0700 (PDT) Received: from localhost.localdomain ([37.244.241.103]) by smtp.gmail.com with ESMTPSA id t1sm10752919wro.34.2019.04.29.07.48.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Apr 2019 07:48:00 -0700 (PDT) From: Paul B Mahol To: ffmpeg-devel@ffmpeg.org Date: Mon, 29 Apr 2019 16:47:52 +0200 Message-Id: <20190429144752.826-1-onemda@gmail.com> X-Mailer: git-send-email 2.17.1 Subject: [FFmpeg-devel] [PATCH] avfilter/f_ebur128: use correct type for chl X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Paul B Mahol --- libavfilter/f_ebur128.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/f_ebur128.c b/libavfilter/f_ebur128.c index f613d8def2..f25d5f096e 100644 --- a/libavfilter/f_ebur128.c +++ b/libavfilter/f_ebur128.c @@ -420,7 +420,7 @@ static int config_audio_output(AVFilterLink *outlink) for (i = 0; i < nb_channels; i++) { /* channel weighting */ - const uint16_t chl = av_channel_layout_extract_channel(outlink->channel_layout, i); + const uint64_t chl = av_channel_layout_extract_channel(outlink->channel_layout, i); if (chl & (AV_CH_LOW_FREQUENCY|AV_CH_LOW_FREQUENCY_2)) { ebur128->ch_weighting[i] = 0; } else if (chl & BACK_MASK) {