From patchwork Mon Jun 7 03:42:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 28121 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a6b:b214:0:0:0:0:0 with SMTP id b20csp3147000iof; Sun, 6 Jun 2021 20:43:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWUOnQpPf1BcyCKHZLreQsXkfZ6FrCxH1jVXP/BTLAut31wn06Jc5dsqR8tOHv7WjmCCqt X-Received: by 2002:aa7:c04d:: with SMTP id k13mr15018826edo.122.1623037404353; Sun, 06 Jun 2021 20:43:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623037404; cv=none; d=google.com; s=arc-20160816; b=dkgdGrO7vZO8iCWiuqrTVWjK805JXR9bYkG1DcVKL6qKAjJvZ3zxcWSjQ4HuA/HfpA Dyww9aJEYExqrTtCNhQNqmArJ7HdmzdjWM+FtatuaVSeB+CkRPurJbZI+aONngbfLygA K2IdKuPeFdu1hE86LX3E5OPuF77VdMZqXYN0yEVgmpPO964v4tZnGeBdv+QTsKKJDu+/ CGQtfR4ztZpGknIwFOmd4K3By53u3HwRuGL2KoZKX03k5Jn54XDGTRmF9pVbaEK2UEs0 ky2V1dFBEwJUn3KKep8w0fGX6K7c/0lknZ5RIlRkRBLPxhQoLKvHfm4xaGrFrzKsGTkA orkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:reply-to:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:subject:mime-version:message-id:date:to:from :dkim-signature:delivered-to; bh=1nQiOG5th8KO58mHGHNarxIZG5v8Jbh++CoM7bXzUfE=; b=jEOjpfQx030JRYd945SJflO4528KOSfDM2reYf9+ZJfnJvxhGMvxO859usBBHRgcoK c7DReenBZwjbzKM6wm2WXCEFcejDIZirhKAmrEMRPJc2EO3c7Ux1tS7IP9nbAxhwPYm0 2qvoVugFrKk4GmOsSb0McehLeyKHGR7VfF1mLkT5frj/F7YZHB0eBRIcckbx3E32Pnt9 Hyrk7J2GYm8E2cmG/CzSTmKwqrjeBm1J0JEHyKXRN5Ppr25+AB2oTyH5oeL9+vHBD+cT S/nxsrRerJ5wis3nDWrKJmvGUhXMkgOcfcKR/tdoAnYDriz/Sw0ucdelyQS6yHfK3sPR 1n2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=PMweqD+r; 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=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id m4si9910722edq.47.2021.06.06.20.43.23; Sun, 06 Jun 2021 20:43:24 -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=@gmail.com header.s=20161025 header.b=PMweqD+r; 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=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id CF6F5689965; Mon, 7 Jun 2021 06:43:19 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qv1-f48.google.com (mail-qv1-f48.google.com [209.85.219.48]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 5A77668803A for ; Mon, 7 Jun 2021 06:43:13 +0300 (EEST) Received: by mail-qv1-f48.google.com with SMTP id im10so7302449qvb.3 for ; Sun, 06 Jun 2021 20:43:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=j+V7SGuD2K59esQjs99A4k8OSjx0OFeT4JRDUOghve4=; b=PMweqD+rz1JCHPhzPxCqtkb83/4SMHhHyqomlXBcBFdjxGLxtMkZkkJYnDxsxwMURV iz1A69R/KPXMsbYWCTIBLKBcUXxwldo/KEK6biJN0WOdBIb1A+rdofSPscgMc0NUWLPi POysXj8+072xs1dj5Lfe50gDuY4R4PXkZKoUBtJpr6LHiaaj8qaIjHZu+olLY3O5Z8is MDzz72/0Gg/4tvZRrj5E3543u1ip33cWABmJYaNXuzKp9QKimBcaW915eAANVYy5if2W kvJbfti4y2t5muasxm6zYjSeRr27iANefq6o80LHsashneq1VqTV6QmmoGA+Ofn5R9A2 rNyA== 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:mime-version :content-transfer-encoding; bh=j+V7SGuD2K59esQjs99A4k8OSjx0OFeT4JRDUOghve4=; b=mMAFRKo7ciIzZZ1yOaUzP0HuZDIYyFQLfOqX+lumbpsxneCEBGiZfHSLOijDRZf1O4 4tGyoo0RM4XTxyhQKChIxCtoT71EwaYkci+8pcYueY5ZNaMwiJc/EtBWSIvqkFroQjs/ zDmYuMi/EJ5/a8fS2JcYIyUTDsaSAoXdNkqbJDuCDwiWBVAb7YUevnBaCikGCCpVsSCf 3X0QEUdjSt/1oBawLJK1V2OGq6se9gg2J7RQMmojlqt8l7FzXgCD/3AafhwBaIIPLsaa N0d1ZYcUOwJmNToys0optesNSsk/A9U3nQ4jazHyVGlywo4YAdC/4w1NC+msLTrov/Hi UcEA== X-Gm-Message-State: AOAM533gFEidC6WsSH++lGg3L9qNhxmUVwBq25RPbJ7L64heeI0EVAWB Ps+nd2iowe0i63wRtRImrk+RupY+A08= X-Received: by 2002:a05:6214:e82:: with SMTP id hf2mr16129267qvb.22.1623037391623; Sun, 06 Jun 2021 20:43:11 -0700 (PDT) Received: from localhost.localdomain ([191.84.230.84]) by smtp.gmail.com with ESMTPSA id d16sm8037772qtj.69.2021.06.06.20.43.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Jun 2021 20:43:11 -0700 (PDT) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Mon, 7 Jun 2021 00:42:15 -0300 Message-Id: <20210607034216.2862-1-jamrial@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/2] avutil/samplefmt: remove outdated comment 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: qrlwDY2is/af av_samples_fill_arrays() has been returning the minimum required buffer size for a while now. Signed-off-by: James Almer --- libavutil/samplefmt.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libavutil/samplefmt.h b/libavutil/samplefmt.h index 8cd43ae856..f270199195 100644 --- a/libavutil/samplefmt.h +++ b/libavutil/samplefmt.h @@ -195,9 +195,8 @@ int av_samples_get_buffer_size(int *linesize, int nb_channels, int nb_samples, * @param nb_samples the number of samples in a single channel * @param sample_fmt the sample format * @param align buffer size alignment (0 = default, 1 = no alignment) - * @return >=0 on success or a negative error code on failure - * @todo return minimum size in bytes required for the buffer in case - * of success at the next bump + * @return minimum size in bytes required for the buffer on success, + * or a negative error code on failure */ int av_samples_fill_arrays(uint8_t **audio_data, int *linesize, const uint8_t *buf,