From patchwork Mon Jun 1 13:35:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 20055 Return-Path: X-Original-To: patchwork@ffaux-bg.ffmpeg.org Delivered-To: patchwork@ffaux-bg.ffmpeg.org Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by ffaux.localdomain (Postfix) with ESMTP id 67F8544AFC0 for ; Mon, 1 Jun 2020 16:41:36 +0300 (EEST) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3FC35688200; Mon, 1 Jun 2020 16:41:36 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk1-f194.google.com (mail-qk1-f194.google.com [209.85.222.194]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id A061568048E for ; Mon, 1 Jun 2020 16:41:29 +0300 (EEST) Received: by mail-qk1-f194.google.com with SMTP id s1so8989394qkf.9 for ; Mon, 01 Jun 2020 06:41:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=Z8MKGKJniFMiQAPt46kkgG/RtSFMDwM0sVDcnx+0Zfc=; b=tZld82TBlbCrEdQ5tFI0XkvMi81RfufMeFKiHrZy5mI/JMCMM/lucjdrjIx/fiQp59 W3+Khl5ZUnuPIUDVGRc3Ct6OkV65isuuLMkvICRXQ1KoemwLTlU5Os0L3SAjuJRYSY+u /kEaJFED/7VqH6WZedWQADPDdwEjPWsXIGNowxDkihzidOF+AGo8T9eRcpijwRIYhjQt miDsL48kgAM87HKE8iRgOZtSnuOcmAtYhixNSfPlud+FrQJR55IsY/PpXlkvDOemfpj1 P3ai9T0UTVrMOnt5/gRQycoZeWwcpFaDWkakXlcp0jlyfduEdSgCDQBbeW9U0HtBQid/ YUXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Z8MKGKJniFMiQAPt46kkgG/RtSFMDwM0sVDcnx+0Zfc=; b=WJdC2xFiT09TAM/Pg8A7xCjvUXa0B2cio1AWECEs+fQdfip//3fcjZdYpKdJU9ULcK 6U1Ny0qkbe0rjVV2hLHZLlZ77TaMV8du1oLmDyTBAvov7v2XHntAd5KPWIPvZHOtkgdt /YLaWBkaj93g4jVHMbj8d6r/eK61Qk18eaLLhLMlmMBVHtkD96zNjxXI09hCX59ZuI6S lIJqznsGuSCveg7RCMxt3JBqqs9Wg98NktKICUbd13gVXcADwrIzYqw8L36JKksODTqI mRe5Zy4oV1s/5Ui5630+KzNcN5kXrB6+QwFEEZLLbtKWdZq/iNVEHLAORacy2zRD+EQE 7lEw== X-Gm-Message-State: AOAM530Xezx0Sbe3t7BzXm6X2XY82GBfch4VNHTJ2SeNpllcsF0QPdPr N3TwR88Ppeg4mBVUGr6z5Kg1i7V/ X-Google-Smtp-Source: ABdhPJys6qBsm0UEVADlOz52J5nNTKM4lWZXuhF77ItalKgD6UXa2UeQYQl4+gLoSAO0F3QzPSEX3A== X-Received: by 2002:ae9:f40b:: with SMTP id y11mr20107818qkl.107.1591018523625; Mon, 01 Jun 2020 06:35:23 -0700 (PDT) Received: from localhost.localdomain ([181.23.72.208]) by smtp.gmail.com with ESMTPSA id d140sm13584055qkc.22.2020.06.01.06.35.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jun 2020 06:35:22 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Mon, 1 Jun 2020 10:35:08 -0300 Message-Id: <20200601133508.1795-2-jamrial@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200601133508.1795-1-jamrial@gmail.com> References: <20200601133508.1795-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 2/2 v2] avutil/buffer: avutil/buffer: add a mention that some arguments from av_buffer_pool_init2() may be NULL X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: James Almer --- libavutil/buffer.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavutil/buffer.h b/libavutil/buffer.h index e0f94314f4..c0f3f6cc9a 100644 --- a/libavutil/buffer.h +++ b/libavutil/buffer.h @@ -254,12 +254,13 @@ AVBufferPool *av_buffer_pool_init(int size, AVBufferRef* (*alloc)(int size)); * @param size size of each buffer in this pool * @param opaque arbitrary user data used by the allocator * @param alloc a function that will be used to allocate new buffers when the - * pool is empty. + * pool is empty. May be NULL, then the default allocator will be + * used (av_buffer_alloc()). * @param pool_free a function that will be called immediately before the pool * is freed. I.e. after av_buffer_pool_uninit() is called * by the caller and all the frames are returned to the pool * and freed. It is intended to uninitialize the user opaque - * data. + * data. May be NULL. * @return newly created buffer pool on success, NULL on error. */ AVBufferPool *av_buffer_pool_init2(int size, void *opaque,