From patchwork Thu Jan 13 01:56:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 33389 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:cd86:0:0:0:0:0 with SMTP id d128csp27453iog; Wed, 12 Jan 2022 18:15:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQCJ1WBnOu5+7oKi3RhFvF2rkLNp6XvXZBYZXrhodsCdTFR8QV9YAPKOMRkIx8ITEBjZeZ X-Received: by 2002:a17:907:94d3:: with SMTP id dn19mr632799ejc.348.1642040150752; Wed, 12 Jan 2022 18:15:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642040150; cv=none; d=google.com; s=arc-20160816; b=LZP4u+8Y0FvT84Hbn5pf52/Nq9khumozxONfOsqUns1caRg3EJf64bMODy6ntzOM0g DL3e5//WcZxqkVJUmX1U6Mi8atB0MgZCzbBBOy9Z4W5HI9G4zKo1U+kVLX7i7iVq9q1z 8LY7x0MgjGH1x9QYIM2kZU2i5d4htP++S6NZtU3iYSkxInc6cIUUt648PbZ1Vu6emCQB zM7oMnTmTAx8tCOb4pzpd9JnytCAlnj2pfcjZRNRaCZj080L+ezG1g/EDSImDfN98qfZ jf4uQ2IWnaXwUXzfVZcdWPkRIqpoc2eGGekRB3G6JZnrZ4J8wo6v/PY6kSE/eMgCkhcY zzvA== 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=Nht1WssSjLGp+dBJv83umAHEhCz4O7lQbArB+ANZM9M=; b=0uvoQ1cRuD19U5S77/CBU5pzUTADMADdTlF3XXyQpwS5jHbVgxJSvc7g0X/2ZHiOCR sSF0z6oJjc+B4AB59XmSK0NetY6akmKiQfGei9XAleVhSytrHaCQCpZ4ookkKa9c6+Aq ULUftFSRtNhxvrAeLYftVb4fjk/PvW1GTO+yOziKGhh5MfmMNZCywjBB9jbVn0hT378x rPthb9W1mLy0gCmTw/mC1a+b18yOtNJKfUCWAkQuOT2x8hjl2mxYwpGUB4RAjMCsdL+e GxPdydagv+XEmu4H8fV0CXvt8Afu3Q6p9Id4STPmkadnpzU4Rrv9Tnp+NcQZS83ZLHOT InNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=MR+FrLGS; 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 x9si351161eje.195.2022.01.12.18.15.50; Wed, 12 Jan 2022 18:15:50 -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=MR+FrLGS; 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 6AA8668B2D4; Thu, 13 Jan 2022 03:56:55 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qt1-f181.google.com (mail-qt1-f181.google.com [209.85.160.181]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 107D268B2B0 for ; Thu, 13 Jan 2022 03:56:51 +0200 (EET) Received: by mail-qt1-f181.google.com with SMTP id h15so963423qtx.0 for ; Wed, 12 Jan 2022 17:56:51 -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=2Yv0EsD9ytLrEPfAshjX2d3CUc3qgCzOlpxxPDHhJ8E=; b=MR+FrLGSlRJPAcYu4kUNWAwel9cQ4TC+YINzC6zALzagWhPHfi0hwMKMqjgEBQW9uF hMD8rwPH7o3qDHLqffLd17ZweVhtNAI6eeZ5HlK4Db8KArrnjehBHr8CFDRuTpllqiFm F+lpujIT8kzL+pIFPvWUYrHgX+8PySNgc4/ubvgh3dNZyLwTcAs4LCODIe37CUOrJaAa y064TPoBA8VmLCJ9wQ0aeSKNsQhUTpnt9L4486c7Cg6P7fy7VpHczkJ7AIW6PD9WfL2Z aSyiAfosjV3uyYgyBflPTgdNXDHrlM6e29a1kcDFdAC3nCSN5B1X2gQVjmjT+Nil37Wd wb1Q== 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=2Yv0EsD9ytLrEPfAshjX2d3CUc3qgCzOlpxxPDHhJ8E=; b=iwYgGet0MhZlRVRlGS2TN+NTfwn+Ea4Dl3poZZEaX72X/I07ebmfwUN7w0EyYnWOYU cUDEF1zbdHfMVAlnd+ulkxe8WrkdufZxLlWanD0YZpsIXRrzn7BQicUq6NhCmYoHfcI4 fYycCS6Phg0uteo3Zh8ZHTEbxUweikqEv9cI/NnEaO4I0QGvlkcxyPPKoTpK17RLYfDr uR7OZ9C0I+pTueMHD4MSYtcXoyPHLD/jI/DyaELSlxXNwGWCf2lQJ3GC4+E5wV/YjGgv T+MYdU/8qDqD5lEcTUIJjyfIU2Ya3NbzoQ2BFgWT4cUlO5lzny416JAx+HN41IIFjWiv Fdmg== X-Gm-Message-State: AOAM533xYUzetR0tcFf+1jk8EjKKmB03orQnUaWZiiEUWjRyS5josRyV XgkFtxQESLAM0ECcnan/NtLR9GGNZZQ= X-Received: by 2002:a05:622a:352:: with SMTP id r18mr2051588qtw.78.1642039010653; Wed, 12 Jan 2022 17:56:50 -0800 (PST) Received: from localhost.localdomain ([186.136.131.95]) by smtp.gmail.com with ESMTPSA id t11sm906506qkm.77.2022.01.12.17.56.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 17:56:50 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Wed, 12 Jan 2022 22:56:03 -0300 Message-Id: <20220113015612.448-22-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 110/281] mxg: 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: kCZdP1rbJX/Y From: Vittorio Giovara Signed-off-by: Vittorio Giovara Signed-off-by: James Almer --- libavformat/mxg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/mxg.c b/libavformat/mxg.c index d5c1d666fc..b160ccb9f9 100644 --- a/libavformat/mxg.c +++ b/libavformat/mxg.c @@ -57,8 +57,7 @@ static int mxg_read_header(AVFormatContext *s) return AVERROR(ENOMEM); audio_st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; audio_st->codecpar->codec_id = AV_CODEC_ID_PCM_ALAW; - audio_st->codecpar->channels = 1; - audio_st->codecpar->channel_layout = AV_CH_LAYOUT_MONO; + audio_st->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_MONO; audio_st->codecpar->sample_rate = 8000; audio_st->codecpar->bits_per_coded_sample = 8; audio_st->codecpar->block_align = 1;