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 BF61E48F37 for ; Sat, 29 Jun 2024 11:10:42 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A9A8668D6AD; Sat, 29 Jun 2024 14:10:39 +0300 (EEST) Received: from out162-62-57-210.mail.qq.com (out162-62-57-210.mail.qq.com [162.62.57.210]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id BF7C968CC19 for ; Sat, 29 Jun 2024 14:10:31 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1719659427; bh=pUZMVztd/Q5/Y94xJnlt3eujz3JmcacFud0pZ+RtsWk=; h=From:To:Cc:Subject:Date; b=Nn2J4nYGrccHJxLX/e7IamKpfZo7xkLSdCbMCKdSxHWfwmwAjI2fraiCtBYi4TJYE bqS5BIlGkTW58CIfrHNUDNUDhPY0SPshPRxdV80a63v90DIvMeGrZyaRxs2Z2WCY3E bjBwOy7p13/SpiPpzVMbRJ43fSOHjz/MhmeuCobk= Received: from MARSZUO-MB2.tencent.com ([171.83.46.84]) by newxmesmtplogicsvrsza15-1.qq.com (NewEsmtp) with SMTP id 29A16CDA; Sat, 29 Jun 2024 19:10:26 +0800 X-QQ-mid: xmsmtpt1719659426t5jpjvaob Message-ID: X-QQ-XMAILINFO: NnA3IMNPwBd+3bURjSkbgUODvJiVK15hIpEOxY7cT93XjCdiQJYOVd1gLOrBh3 ON1xPE86zwtHUvLL3Ji7dXvyRYplY3UlJr8Ms8x/gztUivq1CiBaqe+mRhLj4CR+PB5mP1k9nTvq quow0E3DmkxU/6+rLE53IZT3sbZW2/XrBOwnTnwQrKd0uJ/He9a7/lpIA3QA8Bx9GcB3Dl8BwVaL SStZIuHNdcv/IgLaC07yp+QeCFwamWrj7PIROYkL90gwVdfvqx00hzlntnWLom39RH8dtMI2Pn5i 25hp+sVxllseMRXhW2/Ylut9Qlcly3DYqEa7sOY+BvVzcOYuE9TtvvQUrDHgj6SxYaoXTLsnkRCq mqJJNt+VkhIRIYTwVJ9Vy9XsgRFzYJl6lglEHd62XtqkkJYrZiekYn+Y/F4jtisH2lmARvRa8T3V fDJ16ayYPwRIjGN7EXMb4fnFumoh8SS3E1tdPyRRd7BYLkH/arX+9ZXrgeegTGDQN+XMlM/fYrvZ A0ISydxyfdxg59l4GNyN7g0hAPVeCv3wEj9gDmo7vXcosTX9Dd0meaUHUl7churdLYggCzx9uGOI RgajAtIYBJR126nlzVajTZzyjdJgUTXk2+k/u/CGnMBDZA75OpB4w8Emcq/slWE9C0gur7KsWBoU F603tKcz495OjTZ7xJBeg2ROowb3ulvtLnWRB3JFzpRLBh9513cbt6+zaO80gc2QHMG8tbmP/Mc3 qbj8S4eon4hpxcIwdNmHanT2u56GJO/HO+bdqGje8lapaTLn63jIeaW6R3GXWbyNpKap5TWXMe28 xNWKGylYBfK6broM982qrIG4IdWrNoagfMuqBsLXnDkv/BJxQ1lCNKkEnFfhha/D3Rr7piaxox3f RaNFPHCNEGzFm2g1UIGCJxe7hvCzcUZq7SkNdViP4940Ch2qA3DDjdqlarBk/xkobcYWa96GO92O o9fkX+7w4pNxcpDGz6y8kSYh0D6vuk0WEGoNGIto7yjp8wEvRP4U1ewKor+woDxIsJ7sFFdJbYLI CbPIjcTAfyuGuO5OVflUO+BKyU4bXGSwFU+SVRWQ== X-QQ-XMRINFO: OD9hHCdaPRBwq3WW+NvGbIU= From: marszuo@foxmail.com To: ffmpeg-devel@ffmpeg.org Date: Sat, 29 Jun 2024 19:10:24 +0800 X-OQ-MSGID: <20240629111024.41767-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 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: 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); -- 2.39.3 (Apple Git-146) _______________________________________________ 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".