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 5D6AB42DEA for ; Mon, 8 Aug 2022 01:26:03 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A4C1068B71F; Mon, 8 Aug 2022 04:25:49 +0300 (EEST) Received: from mail-ua1-f47.google.com (mail-ua1-f47.google.com [209.85.222.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1CE0468B70E for ; Mon, 8 Aug 2022 04:25:44 +0300 (EEST) Received: by mail-ua1-f47.google.com with SMTP id y22so3007858uay.1 for ; Sun, 07 Aug 2022 18:25:44 -0700 (PDT) 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:cc:to:from:from:to:cc; bh=3PJG/Pl6YuUhbM43F4fMmcKAcHcbKbwCVDOK1wh0llk=; b=IHXxixdpq0RXDb9qXy1xWmU0zinDrawsx1LqJLrQLqosA0xqiwiugVi3l5bUWZASxI Hd+5d63cIT21O15Ew70Mya3MPHJ98FFIrXrvD/aZZycWSrhlok8M1nABNvD4nsuxII7n vAl8rFfCZQvsAo1WnRO8aM0pYfxAiV8vkxvAnjvVSt/G+vuPmKUEIRPsvEefc2eJUyrZ VonE8b67UJo0icGjJXjfgAh5RJkj852e4ExarOBCkTvf0moN4FwnUs5U6Ega3ZHW9DS3 REGu1avdp7i6jvQzv7euuDbyr0ZSc8u8nzhSxb8SaSHjwMLqRclUNfZ1GzmX5k/WtoUn 34lg== 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:cc:to:from:x-gm-message-state:from:to:cc; bh=3PJG/Pl6YuUhbM43F4fMmcKAcHcbKbwCVDOK1wh0llk=; b=2tpWKnjYg9UzS+KtZCHFuM4a9o5hnIg7s3fHExbZvYVSs8mxvjDIz2P78N706yAWfd 5GQEqKR9UevdpxUp5GnLYZiqrwhwoaGnrcr74VDb/JEvpB02r+HtFbJjTPBDSWN4lw9h 0aSBo2HsbR1GkwSTMZx5f9C2aGy3lrFBUtAIjIKYjkfZQT4agc0uftRo5Q41KOBS8IhW G48rAIsDVcbIFeB7m94mEVAlpH5S+3qaM+3xD2amiWAs1Dm97wpAUkU8XTSpBCYogIau siG34+7+45ci41RvWXPrGY1GwkLMKbJk2khAMq8bGse9jnwESd7XKaatixb3DX7t3kVj z1KA== X-Gm-Message-State: ACgBeo35kH/4FrMXsxkSGq/xGj8GoNm7xz8lfR+OKuv7tMkNO9SsVvu3 cnqCtxOV38yasF87jim3t0sIGBKNlCyWHA== X-Google-Smtp-Source: AA6agR6UsuE/qrqt923VSOBkuUwjb6psVcVMCCOKNBQCKPgRKj3XRP47OQWW+ZOaLoUxUt/wyKDQ0g== X-Received: by 2002:ab0:7c46:0:b0:38c:8967:bd23 with SMTP id d6-20020ab07c46000000b0038c8967bd23mr2229965uaw.105.1659921942533; Sun, 07 Aug 2022 18:25:42 -0700 (PDT) Received: from cappuccino.. (075-115-109-114.inf.spectrum.com. [75.115.109.114]) by smtp.gmail.com with ESMTPSA id n25-20020ab071d9000000b00384d3ce037dsm8053646uao.4.2022.08.07.18.25.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Aug 2022 18:25:42 -0700 (PDT) From: Stephen Hutchinson To: ffmpeg-devel@ffmpeg.org Date: Sun, 7 Aug 2022 21:25:31 -0400 Message-Id: <20220808012532.41519-3-qyot27@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220808012532.41519-1-qyot27@gmail.com> References: <20220808012532.41519-1-qyot27@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/3] avformat/avisynth: use ch_layout.nb_channels for channel count 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 Cc: Stephen Hutchinson 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: Fixes deprecation warning --- libavformat/avisynth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/avisynth.c b/libavformat/avisynth.c index 98b4d68a57..5605fbefc4 100644 --- a/libavformat/avisynth.c +++ b/libavformat/avisynth.c @@ -753,7 +753,7 @@ static int avisynth_create_stream_audio(AVFormatContext *s, AVStream *st) st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; st->codecpar->sample_rate = avs->vi->audio_samples_per_second; - st->codecpar->channels = avs->vi->nchannels; + st->codecpar->ch_layout.nb_channels = avs->vi->nchannels; st->duration = avs->vi->num_audio_samples; avpriv_set_pts_info(st, 64, 1, avs->vi->audio_samples_per_second); -- 2.34.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".