From patchwork Thu Jan 13 01:55:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 33368 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp24519iog; Wed, 12 Jan 2022 18:11:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5nD+bNP6HBWPVwd/mTlltKx1mU0ozrZH/okNNjFqx27FRV0uMb0xIcGDEauaOcdJ4+0MD X-Received: by 2002:a17:906:f243:: with SMTP id gy3mr1932483ejb.432.1642039882008; Wed, 12 Jan 2022 18:11:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642039882; cv=none; d=google.com; s=arc-20160816; b=0vnMsTyiydFohYAXUzw80eFEu5PGQ06PIfhSe2UefMbdLJbaxsgUWT2UawgGaXCdPS yJxK57Yl0hS/j10VHgM/dORa4DVyTy7ZTTLFpyJ50j+8azkd9SLDhzpXcAOcPDBlFS3d P+rH4uh7aGZgh/hrZL3XYPCK4cVFbzoZH42UvYuntg9s6PLCGzFZgeVe+NYS9yRC1SBV EV563iQ8skUfVYWQ4aw5Y5JebV0Y812JYuUoLfZzMUr1Byz5OmFbG7qizw4F8h3XPVCH IIOWYWf8ZllDDAmuQUEGBdQ2U/D65y98Mu0Mohil1ZpP11SBV4WrYt3mAZyaIRmwz3QL zc/A== 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=NYIEZp4YAOhcsjVPwPI8Cu/PwEMy0Fu3TkdhzkvG0os=; b=BCBvrsk5vyehjiuiBA0r5fXTdh9k08we659o5Fk7gV9zzUdifelHVUdqjDXK+FLw2c iCWqfkQ3YAQPDmjlGs9Ef9UwP+Ryvw73t7Ilio0/sLA7wzMhtwqvqjXn8ya0xceskgoS ECebKfF2wzQ8z6vG3jKVLf9JSJVaMZZ7+SPrXMm46IKBjn8WQ71MPCj+pEyVBf9pa/BH KYJKBId8TYS4X7qY/Zj+GzzT4Neb8hY0V/3wPL+qIpTBe7lMCRbVQQWaefrj0kVYy3sN 8QMqBy+6ZNlPANan2g43wG1UPp5YEYywtXb3Ggv6CEegLq8xzBntt1olsDAkTpA6WW1Q oGHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=UfH5TDGr; 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 o17si867580ejy.970.2022.01.12.18.11.21; Wed, 12 Jan 2022 18:11:21 -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=UfH5TDGr; 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 2ACD668AFC7; Thu, 13 Jan 2022 03:56:29 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D3F0A68AEF7 for ; Thu, 13 Jan 2022 03:56:27 +0200 (EET) Received: by mail-qk1-f170.google.com with SMTP id t24so5533104qkg.11 for ; Wed, 12 Jan 2022 17:56:27 -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=wOQMGoVTmba/lJgSitOiTjJvy/kiEE2UCp5pyiXue1U=; b=UfH5TDGrubw1KbD2GC3Sv6ZsLaVNS4N2suhVLjI8ojKJ5/R88a7Go9Eneb0+u8HXlr VGDHc3TTclem39pxIUIfFGH39Ko6C+KWtz5MxF8gU2JQjikJIo1OCfey27UXhWSTKwDF CIDFcyHwsL4RZh74KVQBiwXQ7yNN1r+tG3Czqc8hDFyhr0/MkCUn6YIYC3blqWYksbv2 9r8t15YK+4d8nLR9YvWZSGveyctBuqCye6oyLASRg23OEMzm2wDWoONeJky2PxKK4Ccv x7iyNfuUzxnQOnMRMZxXePtj2OhGG0Fpr2DadQIO6LexIDZQDsg447AvZSl5DnMruDtK cx2w== 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=wOQMGoVTmba/lJgSitOiTjJvy/kiEE2UCp5pyiXue1U=; b=fA/HO9w6lu219qQYUjF+chmV3lsJmsm0lhNjGAdz4+D50cbYlR8sQgYsnVTNOeOmX1 bvIsQ4OT9P2aMXHiHykJOQk3dGlZuuFT13+ae9ZCiJUy/41+TdPcRK/hkMWqK+aIZZLa UlAPcClxWrt47RxmbwHo70PbT4WnR4S2tkF2gMVpjFjtegpAt7pCfGvoSKOkAdTr3WUW OfIL9D5hUb4ZaAcFoqszH3ebbku+waaLa1hKHzW+4vb7jvd2wIQBCA6PrAf5mKNiHwbk lB86HQr42EHXZeTVngMoSND1+etVFI8l5TUpvRV2+kr+9ov+5Yzd+nXSK+lxPSk3UY/A FtFw== X-Gm-Message-State: AOAM531EUfS7i4CmpixA6CD+SB5BQgtYdsoMeox/4z+R7nVrLxyyF6Uw CsOeqtSUPHVFEVJjHEm4MAKEthqWnfY= X-Received: by 2002:ae9:eb8b:: with SMTP id b133mr1888448qkg.418.1642038986489; Wed, 12 Jan 2022 17:56:26 -0800 (PST) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id t11sm906506qkm.77.2022.01.12.17.56.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 17:56:26 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 12 Jan 2022 22:55:43 -0300 Message-Id: <20220113015612.448-2-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 090/281] lxfdec: 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: 53dQ+2rYTXZP From: Vittorio Giovara Signed-off-by: Vittorio Giovara Signed-off-by: James Almer --- libavformat/lxfdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/lxfdec.c b/libavformat/lxfdec.c index 7889abb2c9..9e0d265f6a 100644 --- a/libavformat/lxfdec.c +++ b/libavformat/lxfdec.c @@ -281,7 +281,8 @@ static int lxf_read_header(AVFormatContext *s) st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->sample_rate = LXF_SAMPLERATE; - st->codecpar->channels = lxf->channels; + st->codecpar->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC; + st->codecpar->ch_layout.nb_channels = lxf->channels; avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate); }