From patchwork Sat Mar 6 19:42:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Almer X-Patchwork-Id: 26225 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 D489D44B9AF for ; Sat, 6 Mar 2021 21:43:26 +0200 (EET) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id AD9F768AA48; Sat, 6 Mar 2021 21:43:26 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7B4FD68A957 for ; Sat, 6 Mar 2021 21:43:18 +0200 (EET) Received: by mail-qt1-f178.google.com with SMTP id 18so4608339qty.3 for ; Sat, 06 Mar 2021 11:43:18 -0800 (PST) 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=wjL3VIj7ZPII0dZ6USXuHWyuH2Uv7hxNqmsTYHRPqIE=; b=kLkIDMF/p+dIS2Z+FTFOy8oVECmYGWp4iA8LrlQ9QVysZosYF0fxVY/+sscPDMHfIk aNCRVzP3WojU43DPtks/FL0m3rJxeGx93k+LaWRLduY8NXWqegMC169WgbSE2sowhAnG fqgcWGKoA3FlmEXgJulvg0lC90yI693eIQMVJz5GXZ+oVw1AWBfxu/U0aIBbv0tSOki6 uc+ND5RqjYZ7nBDUv43ga7wAChdcsn/unkeD7XmpMdXqoxlo2AjepWw+PS5AgbtnOdH1 Sc9olIDq4SPFF7hQ5pjjifSFysPbiYxAydwCKrCYe8D0y4yd3/JQg7hKxCsb8iyNulqb nsBg== 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=wjL3VIj7ZPII0dZ6USXuHWyuH2Uv7hxNqmsTYHRPqIE=; b=hKrBsBXoQnasfXpglR6aL3Cn3XbwiVOjAo+r7THx/K/xafcylqQGTDRXdW8t9AsO2D 830sC1gw07v7e/vPvHzGd/UKXOD0wklS89j+PDjp6NK8qPPRSnGsL33xQtXAm0Fx86O2 U9NX6goaGEvLTkIVd+IF6TY9mRD/HYE5ozDsd3bN4Ey8Mv7ZxtmT4wsU0cuamlDi+EKb PJxbWar1zvcI7Qtdv77I0rf9lBPBOMkxZJ92ofqCX/aEkCym+ehJYlzpA3Vj2bS3SpuV AeG+C+7lB2B8CzXGLU/lJzAAG8NO9Q8LzNQgk8MemQs3rYZ5oxPG1XMliCN4vgsozmmy HT6Q== X-Gm-Message-State: AOAM533s0RGJlDNshcRIa/w2OLeENM2RVH3OLJKrPXisVsRsZzTDtpDY oz+EMgmDcXh2Tclh3PoRfc7OzPGECRvc5g== X-Google-Smtp-Source: ABdhPJzGyp5T0vBaBxWJWb4J1FoAbOOBAeSFNryglyfx+uH1bw4aR4pWgTv04dPMaocwg7PE7tAfMw== X-Received: by 2002:ac8:7089:: with SMTP id y9mr11837991qto.264.1615059797060; Sat, 06 Mar 2021 11:43:17 -0800 (PST) Received: from localhost.localdomain ([181.23.89.132]) by smtp.gmail.com with ESMTPSA id s19sm4376601qks.130.2021.03.06.11.43.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Mar 2021 11:43:16 -0800 (PST) From: James Almer To: ffmpeg-devel@ffmpeg.org Date: Sat, 6 Mar 2021 16:42:42 -0300 Message-Id: <20210306194243.14931-8-jamrial@gmail.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210306194243.14931-1-jamrial@gmail.com> References: <20210306194243.14931-1-jamrial@gmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 8/9] avfilter: use the buffer_size_t typedef where required 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 --- libavfilter/framepool.c | 4 ++-- libavfilter/framepool.h | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libavfilter/framepool.c b/libavfilter/framepool.c index 3b178cebb8..dab8891524 100644 --- a/libavfilter/framepool.c +++ b/libavfilter/framepool.c @@ -48,7 +48,7 @@ struct FFFramePool { }; -FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(int size), +FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(buffer_size_t size), int width, int height, enum AVPixelFormat format, @@ -116,7 +116,7 @@ fail: return NULL; } -FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(int size), +FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(buffer_size_t size), int channels, int nb_samples, enum AVSampleFormat format, diff --git a/libavfilter/framepool.h b/libavfilter/framepool.h index e5560e4c6e..28857a4a16 100644 --- a/libavfilter/framepool.h +++ b/libavfilter/framepool.h @@ -23,6 +23,7 @@ #include "libavutil/buffer.h" #include "libavutil/frame.h" +#include "libavutil/internal.h" /** * Frame pool. This structure is opaque and not meant to be accessed @@ -43,7 +44,7 @@ typedef struct FFFramePool FFFramePool; * @param align buffers alignement of each frame in this pool * @return newly created video frame pool on success, NULL on error. */ -FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(int size), +FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(buffer_size_t size), int width, int height, enum AVPixelFormat format, @@ -61,7 +62,7 @@ FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(int size), * @param align buffers alignement of each frame in this pool * @return newly created audio frame pool on success, NULL on error. */ -FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(int size), +FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(buffer_size_t size), int channels, int samples, enum AVSampleFormat format,