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 8F0BC43BDC for ; Sun, 20 Nov 2022 17:40:59 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 0E4D868BACE; Sun, 20 Nov 2022 19:40:56 +0200 (EET) Received: from mail-vs1-f48.google.com (mail-vs1-f48.google.com [209.85.217.48]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3D76068B2E4 for ; Sun, 20 Nov 2022 19:40:49 +0200 (EET) Received: by mail-vs1-f48.google.com with SMTP id a6so9243504vsc.5 for ; Sun, 20 Nov 2022 09:40:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=860McBMW3mF6g3FCtxeVs2rXOxzT1/PKPlJ0nUaOcMw=; b=nQF20XI+adVKofcXwHSyEtryVTBryhi5+PG171P20NzguyH7h2quZFjXOfivnG+5Ss YD6zJTBGixJ6PjvVohRCIsnKIOvFKfgPwRNVifYVRcxqGpHP0BZtN8M4snD2zGkNK/Ea DcXp8K5io81iIc6Ud/G0vDOLTh3RTJOgjKu+M2uS4XOZcTLSFVxIrRr5MvvNYwae/Xj5 had/HCkvsKDvoVHi8gmP8jUquF9zntB+kFpECYqfjaJaV1t/dd1x+DXFra9s1BL4087B RuuYS/81RxiK/q4PkcWj/lHYgOWSA311ZbSn6V99TkICWyZWXlyiW255pqx5HkyeM6Ks /Ylw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=860McBMW3mF6g3FCtxeVs2rXOxzT1/PKPlJ0nUaOcMw=; b=GlVC6LkUN16AYxOEOGR3Jhda9zLSzTb57KFKUgPxOMkeeHcSvJfsg172lug+iL9k6o xr6AxKKJH2hRrpDKbdza8B+rGcZkl48LCWgkGmStAQpWoI3pMfM9y4gQOcQ6U7nH9b4B 6rZ9tFXP9kKvR0PoZbFTocFD9ZiaDfbADvQH+QWJ1kC4K29oVajyTQ69Z1e3ZBl616cn zTDMtq1NQZ2VFy3jAyAOJo7pIXAazkE7Ki+BrP7vSSS9+eqdhdEwxAGPL/RW6TcdksdY HlxfUw4rkvhy/dhY09v9gGrNw7afeQDWHVjeVXs4sBVRCGqSrsBVHgAALTnSrU77Ql38 nIQw== X-Gm-Message-State: ANoB5pnwkPsEpHRaEwtB9xIgTAIQ3nstlT2KLe/IUwRvk3iE4HT/02ol rrvQKguAEuuYnT70lgjtweEw53HX9kM1ixiREq2P8CUW X-Google-Smtp-Source: AA0mqf67jQQ/XbLLglIYyJ0cvtP9i/9dh4O1ggySx8V1phz9zhRu+l8g7z9TzBQw09//e0p756s8WD/jMURsJ+4wu4g= X-Received: by 2002:a05:6102:3751:b0:3af:b950:489d with SMTP id u17-20020a056102375100b003afb950489dmr8420612vst.36.1668966047786; Sun, 20 Nov 2022 09:40:47 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a05:612c:2428:b0:32a:5eaa:92e4 with HTTP; Sun, 20 Nov 2022 09:40:46 -0800 (PST) In-Reply-To: <20221120170625.3578-1-jamrial@gmail.com> References: <20221120170625.3578-1-jamrial@gmail.com> From: Paul B Mahol Date: Sun, 20 Nov 2022 18:40:46 +0100 Message-ID: To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH] avfilter/framepool: use aligned height when allocating plane buffers 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 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: On 11/20/22, James Almer wrote: > Fixes tickets #10051 and #10052. > Not real fix, more like big hack. > Signed-off-by: James Almer > --- > libavfilter/framepool.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/libavfilter/framepool.c b/libavfilter/framepool.c > index 0404589055..7e830c5a3b 100644 > --- a/libavfilter/framepool.c > +++ b/libavfilter/framepool.c > @@ -91,15 +91,13 @@ FFFramePool *ff_frame_pool_video_init(AVBufferRef* > (*alloc)(size_t size), > linesizes[i] = pool->linesize[i]; > > if (av_image_fill_plane_sizes(sizes, pool->format, > - pool->height, > + FFALIGN(pool->height, align), > linesizes) < 0) { > goto fail; > } > > for (i = 0; i < 4 && sizes[i]; i++) { > - if (sizes[i] > SIZE_MAX - align) > - goto fail; > - pool->pools[i] = av_buffer_pool_init(sizes[i] + align, alloc); > + pool->pools[i] = av_buffer_pool_init(sizes[i], alloc); > if (!pool->pools[i]) > goto fail; > } > -- > 2.38.1 > > _______________________________________________ > 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". > _______________________________________________ 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".