From patchwork Thu Jan 13 02:00:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 33438 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp34195iog; Wed, 12 Jan 2022 18:27:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyekUEhS0vno6mlji45Px9Uroy3uahNNDSvUiXOcourcRLBCjGUFlTNZWJ9frRfQkUcVQV0 X-Received: by 2002:a17:906:7cc9:: with SMTP id h9mr1940194ejp.111.1642040864693; Wed, 12 Jan 2022 18:27:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642040864; cv=none; d=google.com; s=arc-20160816; b=HTMUUOv+wfnKNH1Ss9QFfGq9ur8R87yK4eKQi1AllIZd45rcKWfsX6V9T8U6naqZwC r6Scpj2JP4G2UC6B6RSiYs3hiIDabOh581to8f9bHJgC83/Qo1LY21Ap2XFju5mShVXw Qap5oq3PC/tXdjfLkRJUgjDYWSd5lo+04PDf2cSMQWhb3kSjbkZEGlFMsOr6E65j/bOl 5qhQDPf/vtSt00jR+liUnnNAKZxr2HyWgJYBlWTOtMCcoxUx9TmGvMxwdDRvubdu5e5O G5G3lZbaqDaNYRw21/MUYqVbRvIwfOWjOL/l6xz9EJZe8JIXBb4E9XTTLBnyVoFAUGYi EXxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=bbZeJuDshjKWRmZhCIIkJfG7QkkoXoiXygqdupuFml4=; b=fROU/FKtnSELBau7eDo7TW7SuLkq+V2eX38Hf7OL9ss5v8N80DsAjbT/KWmFZA00ED YNdh23ARpLKtDetxsDL0CiWoqOdMyemTKvG5gtou2IMWiD9/qeMglbdUXpyruAa63eVv 3LppexSj22zxBc3vp+8AbHmvI2aFI7izssuxo/nTF7qIAYrkAD6mrX/X/LLcLfklSntV TNHA4MyMxr6F6xBibD2uVS0MOW8F5XDgDhkcJnFx5GKF+i9UFHyW7QTio0UIgva3VGxP DqFlCMUBC8In3rF1R91Eqviob5MYYrzUzSZShxk/2uvSTrIhsAasM3RHPx2+feC1w/vt kLwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b="Uz/UL148"; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id dr19si1000216ejc.496.2022.01.12.18.27.44; Wed, 12 Jan 2022 18:27:44 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b="Uz/UL148"; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3CA7668B4BA; Thu, 13 Jan 2022 04:01:21 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 85A8D68B4A1 for ; Thu, 13 Jan 2022 04:01:18 +0200 (EET) Received: by mail-qk1-f177.google.com with SMTP id m2so5563935qkd.8 for ; Wed, 12 Jan 2022 18:01:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=5/bVQXr1tNIII1Y5404yKqsVIEqPiKoqsU2vcfEEt7g=; b=Uz/UL148QzoFz+WXrQO06Nhn7kDd3eQdQ12CZbK+jXKnXt8DuH9Nz9SzQwRg1143xM kkeW4CYKmosXleGF34S0iYXzmLrDMYI5KAC2RLhVLlfOhslV3vGm0/70quJhcS974gSO 7KQ4GUyeBGtGGMuywFNdDHtihV8lbLyn0ASyAnDfo36AumUE75rRRtdBAh98IhZPcrt+ 3qdbp7UjyIULNLHM8nFAEC0P8fL/Fl3nmFzZlHeGRAcI3xjx3G+M+p0aZh27m61XzHNF FoFKl+FutC0V0PRyR/SsbM6JEO5Nt8a4+x66Eu/j4nP3b4I0yxcl3vhcfr86cYruh2Rs FjVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5/bVQXr1tNIII1Y5404yKqsVIEqPiKoqsU2vcfEEt7g=; b=gbfUfEkF0zdxeqTxKb75j4FavPcuaPvYmljqfSAjg5HyxZJHL1SU/GJtFGSa401mgn RjHoGFcIW05FeWhvLGhgX7/VTUiCnRub4XxHjUq8Cu6ApPV0mAcTqQR38olvBr5m3Ugp CnRmnPFpQS3z0uH/5rebgHTSNPgVLn824o/opXdgMzDSV1EOHewhj0IankUzLEwckuXZ IxlvvDQTSfchnF35UelILA6M+opwHBC5TMjNZoJmfwGIcUxU1jJv2sAjYilX4zTfm2Nv eAfLCl+hdnAyxYYoODAbGaAdMVryWcbfMS98jE2ohmvMCX2flAE8/Xub9OdilgtDudyT zvdA== X-Gm-Message-State: AOAM531bjLwJS4k05g7NUwbpyUABh1/5OXpFxHACfcE0K2lPYd+Bwr0i j22uP3J1+Ox8kRVlKR/idA24Ll03HSw= X-Received: by 2002:a05:620a:254a:: with SMTP id s10mr1814608qko.543.1642039277165; Wed, 12 Jan 2022 18:01:17 -0800 (PST) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id y17sm1182232qtj.75.2022.01.12.18.01.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 18:01:16 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 12 Jan 2022 23:00:07 -0300 Message-Id: <20220113020026.590-12-jamrial@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220113015101.4-1-jamrial@gmail.com> References: <20220113015101.4-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 160/281] uncodedframecrcenc: convert to new channel layout API X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: JZRbqpTDkl0a Signed-off-by: James Almer --- libavformat/uncodedframecrcenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/uncodedframecrcenc.c b/libavformat/uncodedframecrcenc.c index e30fe4ddb9..1ad37071a6 100644 --- a/libavformat/uncodedframecrcenc.c +++ b/libavformat/uncodedframecrcenc.c @@ -79,7 +79,7 @@ static void audio_frame_cksum(AVBPrint *bp, AVFrame *frame) int nb_planes, nb_samples, p; const char *name; - nb_planes = frame->channels; + nb_planes = frame->ch_layout.nb_channels; nb_samples = frame->nb_samples; if (!av_sample_fmt_is_planar(frame->format)) { nb_samples *= nb_planes;