From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 1D3C540D9E for ; Sun, 6 Nov 2022 21:33:55 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C87CE68BA2B; Sun, 6 Nov 2022 23:33:46 +0200 (EET) Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.46]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id DAFF768B797 for ; Sun, 6 Nov 2022 23:33:39 +0200 (EET) Received: by mail-ot1-f46.google.com with SMTP id a13-20020a9d6e8d000000b00668d65fc44fso5565013otr.9 for ; Sun, 06 Nov 2022 13:33:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=gikhnfVWQnb4EOZ/8cB7M0cXtNinBhmuY/zGP7MotXk=; b=ENhLvx0eAgIqQKLjdkYtYLX/cOZO6TbYiEfyUnn3/voVivbamJeE6Njf4mXnhK8v0C coy50GiB6Mz82JVO6EydUO6W/8fKXLu4iGGNR4301obBN35pM90y2NI3QGaOjOPSFo09 7X2FvH1shvzLnDREtgmlka4SlWOp6bavsADzAG817fRKJ1XXsT+/LummB85NiGAOlUP/ kOJLB/jTSOmqqAVcrDgAR1WZGo/3RJD9NFBQp7shQzwj8nUKX9yZvyhBJMRwYBsmzp80 vjtsikXzB9JjxqPCT+o36t8hGsY0EnakjDDceEddHK6MwEy6GMTloWq9WVuYMM8KGvSv fsow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gikhnfVWQnb4EOZ/8cB7M0cXtNinBhmuY/zGP7MotXk=; b=13J2o6JlP8x1LDnY9psX9ao054dmPEcPUSgTL/16vHPpuCVilN9dvr4w6/8pykPlpS ZK5dRmHi8d5pwZfDEWrr6v2PDlIniCFJbvr24iXYsgQ79Mpn2xu+V6849SXpl1PfuMIJ RZREfDNKTGU7OTEMcywz3ljpG88AnaTEjtpNirtmerMs4BBD3C8o6xVEwwZt62od4ekY FtckbkBWmGoxQgLRZJ6sRL43OMG4YnGT4DIQzCqHftB3IXoZNf03SjRDlHo08lYR7Rir k2ejBTBg+s2m1xR++Gf/e7Jxk/gUIMiI8wd8qXaTP79Z1YSzPtaU7wOYlu6IvGWNo1wW WWoQ== X-Gm-Message-State: ACrzQf1mFScjBlYq3FBLM21FNPdOiDL+6tVZfvTjbqSAhZ54xf0AtJ0b xOFyTqQK2/HhGSr0CZElleHxFPTB/SQ= X-Google-Smtp-Source: AMsMyM6rH3CVxK0gEM0Gcy/F9GSLiuYEjERR+1SjFjnXqZ641Tx7ZuC+051Q5QZ4J8MA8llR8UAkJA== X-Received: by 2002:a05:6830:1012:b0:66c:6237:e6e4 with SMTP id a18-20020a056830101200b0066c6237e6e4mr16910484otp.72.1667770417998; Sun, 06 Nov 2022 13:33:37 -0800 (PST) Received: from localhost.localdomain ([181.85.72.69]) by smtp.gmail.com with ESMTPSA id p20-20020a056870569400b0013bc95650c8sm2231087oao.54.2022.11.06.13.33.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Nov 2022 13:33:37 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sun, 6 Nov 2022 18:33:26 -0300 Message-Id: <20221106213326.5808-2-jamrial@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221106213326.5808-1-jamrial@gmail.com> References: <20221106213326.5808-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/2] avdevice/avfoundation: 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Signed-off-by: James Almer --- Untested. libavdevice/avfoundation.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavdevice/avfoundation.m b/libavdevice/avfoundation.m index c9de93f774..36ad834753 100644 --- a/libavdevice/avfoundation.m +++ b/libavdevice/avfoundation.m @@ -706,8 +706,7 @@ static int get_audio_config(AVFormatContext *s) stream->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; stream->codecpar->sample_rate = basic_desc->mSampleRate; - stream->codecpar->channels = basic_desc->mChannelsPerFrame; - stream->codecpar->channel_layout = av_get_default_channel_layout(stream->codecpar->channels); + av_channel_layout_default(&stream->codecpar->ch_layout, basic_desc->mChannelsPerFrame); ctx->audio_channels = basic_desc->mChannelsPerFrame; ctx->audio_bits_per_sample = basic_desc->mBitsPerChannel; -- 2.38.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".