From patchwork Thu Sep 23 15:28:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 30486 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:6506:0:0:0:0:0 with SMTP id z6csp565917iob; Thu, 23 Sep 2021 08:29:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5iFsDYv1s8oANgd09jrqMQf6qcibOYfoIfmCVkOFly3AGdPYsZ0Chzp16ZKyu0f0LjhWW X-Received: by 2002:a50:d984:: with SMTP id w4mr6026261edj.375.1632410995889; Thu, 23 Sep 2021 08:29:55 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id g6si5668779edf.632.2021.09.23.08.29.55; Thu, 23 Sep 2021 08:29:55 -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=@outlook.com header.s=selector1 header.b=kTpYNVSP; arc=fail (body hash mismatch); 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=outlook.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 37FF168ABB9; Thu, 23 Sep 2021 18:29:35 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-oln040092065047.outbound.protection.outlook.com [40.92.65.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 154E668A94E for ; Thu, 23 Sep 2021 18:29:28 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YGDky1cSNfKteys0wKGogq6xYNaadkwPY/dGBfsQtjJP8cgXXQKB2mq3QM8QwRIXlWt4dPOh9R0OPildoKBmw0Z3Ael79NVNtrswsjsLZO568I9/MUKG3LMwGIwIelGtw/MtDRqxXFr+WQUXzYgJvcSMLonM50WR2ulspyS5TPeruz4VyUqnOKDzmEwPMJky1fvBEmrfEz3MtP+eiZ2wSqw8e2ry08t1E+4aYMJgBiTMTQCGIj9vVmMon/s+65d9zSH1+In2ebCHd2q/QU/BINYIoP1l09CMC6zzWcPgn9Mmm+KGA4lAQ/KcbJbkMNL/j8f7HFtaJhugyZa4KNaFPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=JIJvfwH5UjDyK+cYzZGI3JHVAx7SlcC8Om4bXonEoxY=; b=kBRcC1l1xVTXcSVFFjiZwV/nWafiDFr7owYahDf0TdhyafuFdCl/GGUVgW+ns/kI8WrYb3tW07TDN+TK9ohUO7fzV+07GUrigfs+Hf/PpvDH7esIdJR00cjTnqtU1LTp+xoX6UJG4qU/Aa9R2bWn73X9CGeTGwKfKPKBdukOID5x175myUH0uwFhg7qoHk3FwJ6uMDHNNCOY8gw/wqer64IRGOt//LT40bNPXE0WS6hicVL9FbKMwXgi2LZSwrdX0292uFuNtlz8xu+XeXhY/Q4d4aFLISnMi3/NEOZzAoh0yBY1LZ0SiqCSAgSMC4vQBtJeByn97Oec0EJntqJopA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JIJvfwH5UjDyK+cYzZGI3JHVAx7SlcC8Om4bXonEoxY=; b=kTpYNVSPu7dgWQzxp0ymvSqVBgb8TYDTfopaArGMDTMk3vWPK9cjFWtT/ntu2dQp+UtVI/o0RorYRFofo8xPC+ev2U4z7Dyjxc634bca9z6Br1FrYuD5p9zGSKYwOqxm56rvBLon1LPVOj/9PxnIFSqvOuRuBBUdugup6eeKHmXiSUjX0BdfooSxH/nA+mYrtrSGqI+rjmAGEbxagw62WRXCCYhs9htYp7ZI4vbZXJfyWfd4/ZQD5rDCCJdfRCbT3VSJzLra8QVMuPcDNY7zM8igWUnc7vm1GswYhtvwRCPirtJJzqiTQedofzBfDFeA5AsumAeqNWkdgljtn0RrDQ== Received: from AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) by AS8PR03MB7061.eurprd03.prod.outlook.com (2603:10a6:20b:295::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.15; Thu, 23 Sep 2021 15:29:20 +0000 Received: from AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::787b:2156:ca99:fe00]) by AM7PR03MB6660.eurprd03.prod.outlook.com ([fe80::787b:2156:ca99:fe00%3]) with mapi id 15.20.4523.021; Thu, 23 Sep 2021 15:29:20 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Thu, 23 Sep 2021 17:28:40 +0200 Message-ID: X-Mailer: git-send-email 2.30.2 In-Reply-To: References: X-TMN: [L5rfoQnPHTlpqP3qvfZ9lza1CDMWD+c1] X-ClientProxiedBy: AM0PR06CA0106.eurprd06.prod.outlook.com (2603:10a6:208:fa::47) To AM7PR03MB6660.eurprd03.prod.outlook.com (2603:10a6:20b:1c1::22) X-Microsoft-Original-Message-ID: <20210923152902.42865-4-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sblaptop.fritz.box (188.192.142.38) by AM0PR06CA0106.eurprd06.prod.outlook.com (2603:10a6:208:fa::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13 via Frontend Transport; Thu, 23 Sep 2021 15:29:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5940aa0b-2091-4346-bd20-08d97ea6e9d6 X-MS-Exchange-SLBlob-MailProps: S/btQ8cKWiSygBPrM25OmITrtIHMJgdSOPkHvwUCg8doSSgVqJiTtNCQ7xr6tI4TfTqZgsjIFGH5gI9TIBUJ62zlZ2s4gqxdW/7dleGeLH8UQiqwpW/wJu20KJV9ZT5QKUathqvwdcl8k2HA1sH4aLOEdf3JMMuroQ/U5nxSTftIEcFKMVaESWZ2lucb12MkVcApO0tTng7y78rC1MpQjznMEOYXmBBymvpEcXWbYGZ0uf5R3BOfAkGBvYE93LcYlN2dxDEfs6UyE/vt+RYfBC7rU6+ZjQkFKyKZo8t3Xoz3nDs+ksUGiD5TgUueWEE08E7vLUCLlBIW/Cz9zKrIKfBlC0AVbVYxWpbEbAf2dhTsroVWGcW2/UMahzId6w2YSb2dST/Cx6h0n6yGHF+tTRDUmu5jU5w19+9cV4bPuPID22MUX4PPFTd1h6TCxeYNFc6gGJRkAKi4z/RPSW7ZFsWQyqt+svZcwI9r0bzkbFMlCTRe5OtmyuS8vVxEhZ66TsZHhkDOtkpGWIZy82VjSfNDvgekpQExgVTuDnpgWfWEKTZ3GFl61t+HcZssemoeWc9JxDVI+lM0BDE7OqTDYHqFnFmKxdBrnY0rJeUvgDgTyhVjX+Bq+W10sxh/edDaLoCAKeATjvnvB5M8XKzp2dhSfnvKx3ASAREUmUVmGDY6sW5H2i5y3u8TDzENgXEGSsn+Zl+8225olQRUGdWljswrLLwuPxxlJI88Xtjd/6J17PtM3lSEt7gjF/xje7VQAyMZ7BA4r90= X-MS-TrafficTypeDiagnostic: AS8PR03MB7061: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /hJ7WkoAUD5CD45S/BiWJNzeJTYjs15Hl5Gww7Ekx4fzLMKHu2oASqJARDlZ5oc/Y8aWzHLeDfbatYYyh5Y+LhnYo3UzpLO8tPh1LFnQTAfrOBRztUJWHqKb0IgbeGHy9rtYA/WO+2SYe9c164pDJmfzXnYYzzuGaK6t3okZxoIgIQQfih1H1xcBwLFswQS+kkEbfjPH+ofBeTCHhbAkPkccSkM/rXUK2ZMbi02me5YbM/ZsVBIz2Iha1LpT/bme9hyV+pCaerzDiI5MUCVa27Ahul3V0ARcsbWyf4/ZmdcrWBIUXjto8C+rDH4fDD1OzWw6DJ2sAFtsgFl3858KUYHVGWpYzztBU0LvGMEWjyoixnXUcrB9CtjOFHNGRFrhhNGn8uo/B+k/zEix/4FoZKn4q8QD7+2Oj0HNgpE1EKz5W1Y2/eZ+TpXb26ecGk/2 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3V1lnPdWQgm7R5fupXjB0ufvCyFfSJgT1LGT7cZZYnrJsw88/G543Z/IxbIUsJtExxvV8DiQ+vgzQbUpkPB5sVCpjrsCqEI30qZAvFCcFPYM60ab/XXcwd4gMN4qaa8WM1f6VjJEEABtyBWw02eyOw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5940aa0b-2091-4346-bd20-08d97ea6e9d6 X-MS-Exchange-CrossTenant-AuthSource: AM7PR03MB6660.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Sep 2021 15:29:20.4731 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR03MB7061 Subject: [FFmpeg-devel] [PATCH 05/27] avfilter/audio, video: Remove references to avfilter_unref_buffer() 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: Andreas Rheinhardt Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: yM6cg15ULcks Signed-off-by: Andreas Rheinhardt --- libavfilter/audio.h | 3 +-- libavfilter/video.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/libavfilter/audio.h b/libavfilter/audio.h index 6bbe6ee9ef..90709a0ad0 100644 --- a/libavfilter/audio.h +++ b/libavfilter/audio.h @@ -37,8 +37,7 @@ AVFrame *ff_null_get_audio_buffer(AVFilterLink *link, int nb_samples); * @param link the output link to the filter from which the buffer will * be requested * @param nb_samples the number of samples per channel - * @return A reference to the samples. This must be unreferenced with - * avfilter_unref_buffer when you are finished with it. + * @return on success an AVFrame owned by the caller, NULL on error */ AVFrame *ff_get_audio_buffer(AVFilterLink *link, int nb_samples); diff --git a/libavfilter/video.h b/libavfilter/video.h index 56c58d6766..f448e4ada4 100644 --- a/libavfilter/video.h +++ b/libavfilter/video.h @@ -33,8 +33,7 @@ AVFrame *ff_null_get_video_buffer(AVFilterLink *link, int w, int h); * be requested * @param w the minimum width of the buffer to allocate * @param h the minimum height of the buffer to allocate - * @return A reference to the buffer. This must be unreferenced with - * avfilter_unref_buffer when you are finished with it. + * @return on success, an AVFrame owned by the caller, NULL on error */ AVFrame *ff_get_video_buffer(AVFilterLink *link, int w, int h);