From patchwork Sat Jun 29 10:41:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: marszuo@foxmail.com X-Patchwork-Id: 50211 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:cc64:0:b0:482:c625:d099 with SMTP id k4csp772409vqv; Sat, 29 Jun 2024 03:47:50 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWokVOjqkN2WiLJh9fJWwGnD2gcsMvaZfP1duIXpQa9YXV3SUUcu1B9fBkTggcgu6sAC2LzdDUxqaplRDWd9o12o/1sbJu6tgNobw== X-Google-Smtp-Source: AGHT+IHSjUnDrrsjYBrvRCf7hJ5QYcwL3zQHl4RjO6IzpAltWNQYMANVTEuC8Y9Pm7c5asScpfGD X-Received: by 2002:a17:906:3106:b0:a6f:5609:9552 with SMTP id a640c23a62f3a-a75142d873cmr60026366b.10.1719658070644; Sat, 29 Jun 2024 03:47:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719658070; cv=none; d=google.com; s=arc-20160816; b=MkCUS9PUONKa7d2rPlMcvbNJJOyTR5qur5jEmLnkU/Aue3uGpoblcUgOo4pxGf90Lc G5cDdho3mSCuBi3J9qVcL53p3V7p3VLZAFBTQO/uf2m9Xmdpr4t+FE5gt9Cll6GR5gFS oYSW99V0uhC30+QiMJD6hsCbRVDxb9+e3on3y2UZh9WHJq+clsKaIJr6bECr8cKRhiyv tu6juN81AXLy9HuzwJjnRYJsjtY++Y68L+YWMp7W1dMbNi1QhKXQtXmtpai0eimIQoAY kOaGYugkH1d1vwiww58K3axfFl4UF/YR5xHXI5b0hoi3VZQb/RB4bCkFNLsQZPlkzRFM 6S2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:date:to:from:message-id :dkim-signature:delivered-to; bh=il+qn64kHLSdLVY43rw0Q/IK0LEyR+jQGogm35LggDQ=; fh=/0B9SxIjFDXn7GkNFV92n8QOm5s7xBkwwD939ekU+5U=; b=ML91s/UuT9bj4WPbolEEZ6U2MD0VDYoNffz/6HQq20gw3z40xwcocAjBmnN1Q08YsB btRw/uiJHwwNbRA+dmWQsh3qqFH1l82eV99pKx8S3qapixFBOXMgB+ESIN3mSqeH+heV 7sXspdacX8o4XPYYVCpsJeducCW2Fc0M/RCuD9YnP3OBoDes03/s10SH3zWFXGflV70Z XxBzXEIQz8uOaWSXTKwkCXOGCiKyHgvXofa+/4RieN9eYjx01GECy8kX6DKFjUAgLwCP Xt9k/VNLh5gXS91g63OARzz6FVFkv8gmhnMDaP9hxBj36Q2yfjme08vXq2KtpVutp2bF RP5A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@foxmail.com header.s=s201512 header.b=J5I6F8eI; 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=NONE dis=NONE) header.from=foxmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a72ab090eedsi165091866b.701.2024.06.29.03.47.49; Sat, 29 Jun 2024 03:47:50 -0700 (PDT) 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=@foxmail.com header.s=s201512 header.b=J5I6F8eI; 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=NONE dis=NONE) header.from=foxmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0538A68D37F; Sat, 29 Jun 2024 13:41:56 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from out203-205-221-155.mail.qq.com (out203-205-221-155.mail.qq.com [203.205.221.155]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4752F68D37F for ; Sat, 29 Jun 2024 13:41:47 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1719657701; bh=YxRRGhZ5htgXDP5geHofnCSR9I8J0L5pZE9/S1TnUDA=; h=From:To:Cc:Subject:Date; b=J5I6F8eImcRUe0+eZz+8Sn0kLNOVu0W/yuBQt3pNDHmfeWqObsR6K7kYxXMkU6bhp iXCniH+ETjXW/cIL8RdCA3mejBwwZ3ujgTYBKTf3N16/hotFmqhf8LV2w9FMKILYpj ZWxb0MAaJXItojsVAY8TxXGZm3aoLc7c5K8r7FQY= Received: from MARSZUO-MB2.tencent.com ([171.83.46.84]) by newxmesmtplogicsvrsza29-0.qq.com (NewEsmtp) with SMTP id A681A602; Sat, 29 Jun 2024 18:41:40 +0800 X-QQ-mid: xmsmtpt1719657700tlhxd552x Message-ID: X-QQ-XMAILINFO: NOSEDZfI+g6LI/XIpwGX7KiraXyTlR1kDWKW/XVjhYNK2ACAaeWnVPwyqcTWmn QeCpYFuJnQy7I3lOlj7aRgwuoNwS9uzEqz7T6B/JSlYlgZc5LihXkfXGzvFmOZ9PeygFRhpFzPHp KgRMkepU1fdK60QHX5nPgCch07YNq80Ogka0Vj3YQUlaUDQ8f0erfASskIQVZyh/fDnCVDnotkEt HvyRtSbRwSxbwsX31H1xRC25gQhiqr5sIx6xAmCzdSCt9AaMrnxY4aXFYXEjZb/nUDzqlGp09sfl YyNS+Z8XmKfWVcXnlyoll6mu9yHxDu2oMk3Q1/W5MSrrqpLHx+9M+l2RLJCMPOoVVx/qkwP0S6W/ vQYZeWzUbWzllUgZmpRCFoDH0F2rX+/LRZdrWJIkKqr2m6FiDt65xMwZhvM/A9BJzfe6ul5uFWdc ZQ7A1hck+P5Oi2kw1qEo6Z9mtJx+uQXdZTdMz6W/ewVFBcdyXlgh5WXT1IiRL7y5oQhAT6+Uiiqg rrcXr9NMEfXK9pK2DmOI7ecXDuuLMzvIqOOHpEBpXztvcollZxEXZyHyzYdcOS0+H8PBRrkLn9fZ fBXh9oD1EYOwW2EoqlaEHG0XTNAV6nssEYU+6sE99nQqjsakqyl1oETmxh8Z0AwoNoDjiI5G2KtW +hj7K8/PA3ySKnicurjVOxnBL5fncdlwP74Hk1GnLtz8mSVjstwdjk9Y+8qR/mHl6eXx4TCJ02ex Sjv4MfZMKVdVPM+NGEnTXhDZQXnt0jHhznGtlrl+9s742zBF9c8RbQ12zC7zGyOJdxkPNyYnRjoa rw7Z9MvteMfJgEH4txNAJ1clXSOSSaKsdSjq1cn+4YhdSO3xIoSKOpPmcmGMosYfoqlGgOCTME17 uwvUiQ4hefY0/txKjyK4AnTpi4Kzhzx3bq0nHemyosOxKmlbQNr8FrowZSXQKYEmQtoI/2wBLow1 pAg4ckWlz6EcvaL7+Onw== X-QQ-XMRINFO: OD9hHCdaPRBwq3WW+NvGbIU= From: marszuo@foxmail.com To: ffmpeg-devel@ffmpeg.org Date: Sat, 29 Jun 2024 18:41:38 +0800 X-OQ-MSGID: <20240629104138.31708-1-marszuo@foxmail.com> X-Mailer: git-send-email 2.39.3 (Apple Git-146) MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] swresample/swresample: Rectify invalid function in the documentation 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: Mars Zuo Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: SMK2qe9dK3gt From: Mars Zuo The function av_opt_set_channel_layout has been removed since version 7.0, and the replacement is av_opt_set_chlayout. The documentation needs to be updated accordingly. --- libswresample/swresample.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libswresample/swresample.h b/libswresample/swresample.h index 217e5461bf..0e1929b3ed 100644 --- a/libswresample/swresample.h +++ b/libswresample/swresample.h @@ -49,8 +49,8 @@ * matrix). This is using the swr_alloc() function. * @code * SwrContext *swr = swr_alloc(); - * av_opt_set_channel_layout(swr, "in_channel_layout", AV_CH_LAYOUT_5POINT1, 0); - * av_opt_set_channel_layout(swr, "out_channel_layout", AV_CH_LAYOUT_STEREO, 0); + * av_opt_set_chlayout(swr, "in_chlayout", &(AVChannelLayout)AV_CHANNEL_LAYOUT_5POINT1, 0); + * av_opt_set_chlayout(swr, "out_chlayout", &(AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO, 0); * av_opt_set_int(swr, "in_sample_rate", 48000, 0); * av_opt_set_int(swr, "out_sample_rate", 44100, 0); * av_opt_set_sample_fmt(swr, "in_sample_fmt", AV_SAMPLE_FMT_FLTP, 0);