From patchwork Thu Jan 13 01:49:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 33554 Delivered-To: andriy.gelman@gmail.com Received: by 2002:a05:6214:122d:0:0:0:0 with SMTP id p13csp989818qvv; Wed, 12 Jan 2022 17:59:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwfG5upWKI+B3inkTKr1D2QPorsGMoeoY9CkQLTFZqAJTG1GTB4BHzF75oTIYrHqpCt+zgw X-Received: by 2002:a17:906:6691:: with SMTP id z17mr1818505ejo.763.1642039164682; Wed, 12 Jan 2022 17:59:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642039164; cv=none; d=google.com; s=arc-20160816; b=o5sfinY6nXjvAjQaWxa158ik45qxXbn8WHvBcuawzom0d9PCvxg5sHiWNmhhH7KAfd b07BqIvc25wzW7AzrUeus0VtzCOVN+sJoUbgSzCj2z1+w2twDKiu3fHAf5Elvy5pWDN6 oIc2kUefzqVZQzG+9A6Tp6xggYWGiDzo2t2NnjRaLuykbvatNBz/IiGj/58o3W+Yr6Hn 5PeOaHxwJVg4xHVghlmwwO3gW6TabRgvmccqQDmBegjaXLTiPZxlYgUL26RnKlmloZ4o 4INZgnYR+gotgzPDjpb/b459UY9S2ku/UEQrFJDcMt4W+OC91VdU4Dw4HCZhA71JKEut 2wBQ== 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=BaKLhVNq8byUsHkxI+5fbMaP6ykd4nKJmfoN17Sa55Y=; b=kf3Qg6D0XPKaNBqLiUXndYuXn3hlfrJB9UcukaiOZaJgIY1RstjBZ/Ip0amv4K8M34 csmbFhb8c8+VgODB8RVaJ5lHnKHksJD/2gYnDen5JdKQsccRFymJUYOLyZ1bvErS/y92 QK3KYWxvflAVpxk+QnCar19LT8lgmvG8cEPK7CjPTjrXzZ/rNbro4NjZjnE+TuPOOQXH UmDBhjzSA2fDTFQthIIlSPS3xcHxx6ZyPPM80x3LcvKQawFx8GP29krnl553darmcyVq Bf5dS7D5VBlOd43lkxYMmMGNJ/VdXDtjFMNdYwlCM7kQ4NAXdsmJDT+VGB+3lgEGMGE3 daJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=L0AwJjn8; 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 o1si778346ejm.23.2022.01.12.17.59.24; Wed, 12 Jan 2022 17:59:24 -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=L0AwJjn8; 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 1E9B068B081; Thu, 13 Jan 2022 03:52:49 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 21D1368B05B for ; Thu, 13 Jan 2022 03:52:44 +0200 (EET) Received: by mail-qk1-f172.google.com with SMTP id 82so5535786qki.10 for ; Wed, 12 Jan 2022 17:52:44 -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=+/35NihsgcM5ZL9m+vYALy/B6UPKfbEbYcjyyUUDoPI=; b=L0AwJjn80+TeL6gQbkqbKiKjy4bvn13hEXvBVJN0tjw28viAY7r9BblywD05YoP8h6 aUT6LLlZ22i3LHBg0/U5reEDbjh2Lqq4bDdEZ9+siaB+H1FGtOOF6NI6irFZ2ZETsNK+ MCudVTaG/rThq+6It99zwW9bUynySH6c9DE3t7ZwTEUuE9BAFJAxh5Clu8FEL2SLG7FC ABGLTEgObMza4lzH2vy4hcaCWfOPhuwSwpQgpopYZQS8nc1zLIFEAcIiVGXxZkGVBz/2 xxbYjtpatn/dlx7iF6vHSx0PjIuiC8IwTSm6WGkjnfnsR5vsX/2xFM9cyLk36nmTHSF4 7Zxw== 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=+/35NihsgcM5ZL9m+vYALy/B6UPKfbEbYcjyyUUDoPI=; b=ipSzhNl5vyPEKPw3gFRobUVTQGo9VkuYC+NSvvLqP1NBE+a9R3etxhf8tKXFhOwbez fvp11oLi9/PTJVje7sInR3LC1jCXWTJ7FOcq+MKhcEvlFY1av2rWFu4ZcWO9pYGgILAL ajEVn6VaPK8X6Xs0FXHe9Gkkr3SujU79YKmjtWrqGeLJbMGpFPN5D6xdUwnBS+aGkyik gv2nCZUJfWCW7JWXvnF1canQokur1CiUBuG4GSbqI7yAtqTdWdbkX6TRgH6/HpmLLWol l4i+XNrbUyrrXtXU15vliYpm+oCOdjpd9oC9RLWsKeMEmZPoHAjjNhiWcp/T6Pgp2Lp/ 9UzQ== X-Gm-Message-State: AOAM532rGrDRaimQlM/5wM8wYVhgqVFLoFbFHex1kJLu9CrBA03C1IYd nEy72vYqqRt4yFyPazbBOeCUwyF/R/g= X-Received: by 2002:a05:620a:2404:: with SMTP id d4mr1871601qkn.323.1642038763439; Wed, 12 Jan 2022 17:52:43 -0800 (PST) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id i21sm1204710qti.31.2022.01.12.17.52.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 17:52:43 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 12 Jan 2022 22:49:58 -0300 Message-Id: <20220113015101.4-37-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 036/281] bfi: 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: ptce9LxVU2wq Content-Length: 1247 From: Vittorio Giovara Signed-off-by: Vittorio Giovara Signed-off-by: James Almer --- libavformat/bfi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/bfi.c b/libavformat/bfi.c index 69000118fa..a42b78b8c0 100644 --- a/libavformat/bfi.c +++ b/libavformat/bfi.c @@ -106,8 +106,7 @@ static int bfi_read_header(AVFormatContext * s) /* Set up the audio codec now... */ astream->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; astream->codecpar->codec_id = AV_CODEC_ID_PCM_U8; - astream->codecpar->channels = 1; - astream->codecpar->channel_layout = AV_CH_LAYOUT_MONO; + astream->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; astream->codecpar->bits_per_coded_sample = 8; astream->codecpar->bit_rate = (int64_t)astream->codecpar->sample_rate * astream->codecpar->bits_per_coded_sample;