From patchwork Fri Apr 29 01:53:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 35493 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:a885:b0:7f:4be2:bd17 with SMTP id ca5csp34715pzb; Thu, 28 Apr 2022 18:53:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJhn/+GI3Fh+kNVNSn8Z2i9pumdrVE8SzBNX7nTSQzhybUmQ6oLUdOBLli/Pb1bzuD1kau X-Received: by 2002:a17:907:97cd:b0:6f3:aeb8:6002 with SMTP id js13-20020a17090797cd00b006f3aeb86002mr15871139ejc.530.1651197239227; Thu, 28 Apr 2022 18:53:59 -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 t21-20020a50d715000000b00423e027bfb9si4833204edi.429.2022.04.28.18.53.58; Thu, 28 Apr 2022 18:53:59 -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=F72oWPLL; 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 03D6868B233; Fri, 29 Apr 2022 04:53:55 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-oln040092064079.outbound.protection.outlook.com [40.92.64.79]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 598FA68AE7C for ; Fri, 29 Apr 2022 04:53:48 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nDJVzBBTeIZ2YVX+TYWdNk5EviX/0TIsBjp5QCrJHUpLz/ZnwkDHx08+TT7GtTDMRC2aOLOaQhj8HqAd3HnQ6/XBR5xkm0BxaRtFJuoJY7R5EUCj9/1+8x3aac1DRtT8H/c9LH7Fy1Gj3JhN2/yWoBlPKkTNiM2j4CuSEs1/cO0Ao58szs3W1xJLF2LuiMAH60Yxqx+PK8OpnJ0pxgJUFNbX8pgYOsGfKspX0dUjJUS/EeXOFT5Nw6N4Jb5CMBGwTGiQZBy8qv7OIPR3dS7CDC9gnLMTZsm7xvaoFWKUdDMpajuZSMrS4AmJ6bRtjyAHgbLvKMTG6V4KjovvDC7Tyw== 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/U2Ey+Q2sJKHP4K5ADjJiiuEUO07ihYIb/nB7iq/Gy8=; b=ONsvGuQ76o1kQnVZnPTAp4xamEmuNuaDhKKQVjedtOs7bnLfUdLnGeV5vkmUDLnSs3NimCQ+62vJx0uxPaTaVcq+hJRz0ZwKEpYDP23/Sy6hl6I/V1/oW7WrBx17Qq5Z42ZOjUpB+ZvQHUS0INA6q/laikysOFwiSoCGKaJGe5g55EJMXh0EjAXHEm2I+nxTiN0EsltSBIg7hvvMJVp+JuCcF4NlcmBZQ9n6+jJ/4s7FYB0HLWpcj6MVC8efDnLXsI4OOY+e+ytnzr1t976EsQliXHcnGEigJR+rasYCi8LyUvE+hdMj0+yoWxi1bixH3Px95A4tAeC5zSqeqGwg9w== 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=/U2Ey+Q2sJKHP4K5ADjJiiuEUO07ihYIb/nB7iq/Gy8=; b=F72oWPLLCM5/GV+koBTrw3kvNf12XRdWvATJbjyS2REoZSJ4wDFDgcYyq07WbDtxaexQ3S6Es+gGikRfMdVqlmGms65cgQ4fczTHy88T4fSQL7PexwSZ80TVFA2hCGgCnBBErpssktsM7kzRpCD5z5acT/kZXlq0CX8TIokczWajxtG9StV8/xBdRkccGz3PAyh4PaBR2IiWvajLiONNglx471TytnEqpIHRAwdez/daex1KOM1hj/GhBv86mM57Fs7TrKPAAM7gGFrz/qazaFUYfPgd/cqkobPu4nmanOQh3RAPyZHY6Jp5hKDoNisSTIxohCcGgmQZq2zkzpKKNQ== Received: from AS8PR01MB7944.eurprd01.prod.exchangelabs.com (2603:10a6:20b:373::5) by VE1PR01MB5470.eurprd01.prod.exchangelabs.com (2603:10a6:803:122::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Fri, 29 Apr 2022 01:53:45 +0000 Received: from AS8PR01MB7944.eurprd01.prod.exchangelabs.com ([fe80::1854:2c30:7ba1:c431]) by AS8PR01MB7944.eurprd01.prod.exchangelabs.com ([fe80::1854:2c30:7ba1:c431%6]) with mapi id 15.20.5186.021; Fri, 29 Apr 2022 01:53:45 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Apr 2022 03:53:33 +0200 Message-ID: X-Mailer: git-send-email 2.32.0 X-TMN: [GlNRXXkBez9bFsLt3y/R1OUy2XaFk+Ot] X-ClientProxiedBy: ZR0P278CA0132.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:40::11) To AS8PR01MB7944.eurprd01.prod.exchangelabs.com (2603:10a6:20b:373::5) X-Microsoft-Original-Message-ID: <20220429015337.666851-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 85cb2b01-058d-4f30-f0da-08da298317c0 X-MS-Exchange-SLBlob-MailProps: +LiGfBxqLEskn4jZTuCZe/o3Ss3sjhYW+aXD8yIld7qhlZ545TFt7Z4OjhVo3TbktCwTcn2mr6elvwle+HChMMpA8+Fy82/h4ZRML4dZAx2s9+AxBOc5DHfmUdSb9BGWITE4LbwUYLxg5ePUwftNPPe0llmYNNQRkVIqGaukhyM7mcPKNrKKUGs1fa6ZhpBDRtCyGp7t0monOK94ybBzS2yEyLWzpSspPEg2G04qY+GuAn/j3ET3UPiTnDocwHN49XsgKRaD+UEpQpCHNOwfV1HFcCtWnVBh3uqujjpsPqKveeSLNQ1SO47QeY35iZlSf90PxwZEO3lgxoFTHzgrKQfjpYrgVmKRYvYH9AJrNRXWhPHB8FRCl0OdEpQ08pEIz/HMJd4yAF+Up50WBXDGj2YgmRjHcUmMfKiBs1IAhdit9wvqcy08SZPnAecRZH0FHw2PmivDPs/6o74ZcYc4GYGDsj+2sFEH9fjuSYuqH+GsZtwFUFYx2YfkEuPzCi/6WOvIepVXeLGkZRkjnX6kJCYGxkMhjeJGdSXqCfL92vfjW7GVHdali4GELZXpZGCAa4A1JTI6Oaws9Nwx36940hQxrwUN+4kHUsX/EUK462j+HrvOBT0ZSP8qRG1E6WPyJz2DoRg+9Lmu731Yh8/bJaCKly1gr1Ivdhjl677v0kvqwmMfh2CvmOjeg98vVvfJEbbCCVotK5XMQQK1hMSRooYBxQwbOBVoNS7jYzoIeVaOUE3noAZlMgKanud75jHjZi+4oTBe7y4MOWJsXvMD0xofH4RaadgY X-MS-TrafficTypeDiagnostic: VE1PR01MB5470:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: w0pngjxrSrPZehYqfVxiIV6NjwaNZjCac/uCscpxgqG6nP0KxZbujvefDo5vO6N7EvALFJaRCZ8d04Z+yAScC/1t/Sf96B7jNrv/lyaoKRVbhyrNpUQ7BdTdd1H4BAuGtepC855u+BNlh/EpFbEoNkXlHb1MjTrwiKBL06xoUMoSE1LjkBUEriKeiOgfB6xa/ujGoUPta6VpMdsa4iMPx4ioKhT30Hl0KvtzxHHmPTbljt1WfKRR69xt9ou7ZXML8Vvc2emVtTfYUbJoV65J4zadS0GOgOLZJeb2MwcshwRVdTsUefsZW+tOC/KfR4GYyBco/jbcBZj6jwJhiZX6Qpa8LVy7eXElPAw1DY7wPQfCX/d01Gn+R9y9OhMmXSbdO/ZMC8o+tMYzXAVi+GM802e/QgkpnrnqIXlUXG3CqKWgUGNWQTODjvZmiyALwRiUFalFhZySb3q4KTrPQOjbIlKlNOONppliee9S/oPAza8yxnXMkdmS5U+44qT6Seuwfb8NWapW9S1XfI81SD1fKnLoojhKJ40SaH/MeBB2V1dFpE7tpTa0S+8CYEjYPqsFmSlWVrCper4vTcxrBXyb2A== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: EPT+jz2wx9y4qdACw2S8KG5rsHYkC8kiKr60Zug1JTL01ffivlJiek4vNK37rPZosYKYVxQnWZ4QRHxBRQvvbtpzfQPFSz/cjunrbv48l1D9xjSVGdbrrTJm4lsmWaKCU99WkJyYNRENeLWOvaBy3x9qutHob33/1QMf9n33L9Gt68favxSYxp0RoICYkvEaZ0S3cuifhSELp2LyeXYcfryVujfeez0dP0O+YhIltJqlzOVLPUnLA9x+SP22hMgAGlDrkr4wMepVE8fTbvmEtUovg1Nkraq8R0F9OIfFkJ1++Vg+qqbLxqAGkKvmSNEWXPsPK+jRYqSWZQAG30C07KImw74OIer5s3+O/Tu9A2xwiw3S6a4cCXj/xh54pJLxIJ5tPhps9yYrukKxC5he40qG4UUYmP+As5dS2w1AjOadWK5Lo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OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 85cb2b01-058d-4f30-f0da-08da298317c0 X-MS-Exchange-CrossTenant-AuthSource: AS8PR01MB7944.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2022 01:53:45.2788 (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: VE1PR01MB5470 Subject: [FFmpeg-devel] [PATCH 1/4] avfilter/vf_colormap: Properly uninit FFFrameSync, fix leak 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: b18a0iYtb2kk Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_colormap.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libavfilter/vf_colormap.c b/libavfilter/vf_colormap.c index 1e82514ade..9edc89f105 100644 --- a/libavfilter/vf_colormap.c +++ b/libavfilter/vf_colormap.c @@ -537,6 +537,13 @@ static int activate(AVFilterContext *ctx) return ff_framesync_activate(&s->fs); } +static av_cold void uninit(AVFilterContext *ctx) +{ + ColorMapContext *const s = ctx->priv; + + ff_framesync_uninit(&s->fs); +} + static const AVFilterPad inputs[] = { { .name = "default", @@ -574,4 +581,5 @@ const AVFilter ff_vf_colormap = { .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL | AVFILTER_FLAG_SLICE_THREADS, .process_command = ff_filter_process_command, + .uninit = uninit, }; From patchwork Fri Apr 29 01:54:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 35494 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:a885:b0:7f:4be2:bd17 with SMTP id ca5csp35002pzb; Thu, 28 Apr 2022 18:54:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybsOm5VgeKwRuXEskZ5R5dXqUrfb4T33+dlV+eFv8pcu4Nx2tgB7k8Z88bD1Av+bFQXUfs X-Received: by 2002:a17:906:8696:b0:6f3:a043:6ea7 with SMTP id g22-20020a170906869600b006f3a0436ea7mr20197424ejx.387.1651197294283; Thu, 28 Apr 2022 18:54:54 -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 c20-20020a056402121400b00425f0eb9ebbsi4597172edw.196.2022.04.28.18.54.54; Thu, 28 Apr 2022 18:54:54 -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="mGbo0we/"; 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 0A7A468B2BE; Fri, 29 Apr 2022 04:54:52 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2058.outbound.protection.outlook.com [40.92.90.58]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7E5C368AF4F for ; Fri, 29 Apr 2022 04:54:45 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jkhLELXN5dw+IlOXKIfDqtzIF2JpPvxLd6XMB2GSKEYWtBS1BjvUojISGz/2MPHCjbkTDk86p3heo1eg/NidUZISHn36HAeL3OSXjoFZcjC0RHhEn6QYbTsAAJq5KWIdDM3GLtWTKX4Rh7PPc2X+J+8TSzmmys55bNEVct+M0m+cv9Qj9swV+mRann59C7qv4uHYq0v8dS5+RSmni/XZy1jeY8M1KcoGCwN1FPCVDOEYWq9P0W/kDZzk6KtHOm814peKQByJ2LZnYWdcm8mOKB2w2rjcYBs7iAKHAQh9gk6ZV2y7hnaEgp1l1pM6WxOsTaWKsf9n2FH5Rwc4iRhaxQ== 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=slrPgafZv0uITrCCozC5c8hNI9ykUl51TIbBlhjjHoQ=; b=Xe48YaKDsHq8YO4/i43Gh3r1N96I+i5sAjGO/gnkEOPT1tlC1fk7a4I4ThCT98sbaG/J5/KUjccnTIY5KPY5A9sivTRzg977UYlAVtBRE4r0XH5glFGHB33vQPFX0be3KzutmdEO/SpLtc2f0KXx6UFmJpV5JvN8aGCcNJInUUPsR/2jecdrirYhDVSgOxHc5DTHS0kPdzrsqycumGfGblrQqsTyOgJbdi2nXY/BiaIdQ7emyFpv6XpM1boPt+bem/nUwiX7G+5yz2bqVJoJuUHOCMe0kyeRneQPOQjHtu6flfJH4xsPMFAC52bQTah8wncJnHSAwExxBxJwupj5lQ== 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=slrPgafZv0uITrCCozC5c8hNI9ykUl51TIbBlhjjHoQ=; b=mGbo0we/y9nwDCWNNAzetJU8Edog3jQ+D7NtXV+Euz6BcTJbX7NLz5YJnIe1LNC0EFKyCjYZmrmeqNa9yFlKgYVmd7Oj8jtTjERpz66OZwosZ5Z0gy+ATUSz3hdELGBeYp+tqknPgPyaFNGicYxVLwEBbWKqHXP9w6vuJUq7fr4cEeu1+EhWCB05eyQCMQRtEQ/1yfUqzfbKWG946YJjghzR5gjld3qibYt4cZ6tSBYMqnlxO5tH7TvTBbEBhX103GJRm25Hs1QnlPzgyGtVDiYv6Y4/HkXKOHo9prOOejKAbo3fuFnWg83+kgmUbB+4ptzNgFvOc4x9SxHNPvCkYg== Received: from AS8PR01MB7944.eurprd01.prod.exchangelabs.com (2603:10a6:20b:373::5) by AS8PR01MB8715.eurprd01.prod.exchangelabs.com (2603:10a6:20b:44e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.12; Fri, 29 Apr 2022 01:54:43 +0000 Received: from AS8PR01MB7944.eurprd01.prod.exchangelabs.com ([fe80::1854:2c30:7ba1:c431]) by AS8PR01MB7944.eurprd01.prod.exchangelabs.com ([fe80::1854:2c30:7ba1:c431%6]) with mapi id 15.20.5186.021; Fri, 29 Apr 2022 01:54:43 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Apr 2022 03:54:34 +0200 Message-ID: X-Mailer: git-send-email 2.32.0 In-Reply-To: References: X-TMN: [5DQaE2PmCleC8/DlbAsiAcxO8Vx5OL24] X-ClientProxiedBy: ZR0P278CA0037.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1d::6) To AS8PR01MB7944.eurprd01.prod.exchangelabs.com (2603:10a6:20b:373::5) X-Microsoft-Original-Message-ID: <20220429015436.666932-1-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b2667f3c-d01a-4fbb-31b0-08da29833ae5 X-MS-Exchange-SLBlob-MailProps: S/btQ8cKWiRlrIlNS1Twwlcp+xPFa6KcI8vjfCJChLd2ehnPBzrCMCMXaZmotaRZGS6nvwQCGFZ4164yZl8Nz0KjyCexyJMf9LvpmSzck0S6xrMqtOpl0LpqDrOv25WnMirIyiTBnrzxOtiX8/bgRm/aZRxL79pSDLxl9tYsiPbOntR7hrw5xHwldhmVDOgMGTdF4lukc0eWH8Iwx5mpDZ38ijd8saz8Ekd3LtGV1lYsL9txN5T3kueigphflc0fW96Gtf7pkwPvEQCPHx0FFAasyQ9oLhsAjAOUYdRrHxO2zo5MyqW0tyge8CM/NKFRtQf7YanMVwupJeHqhmOffbpq4LpjFBgg+LDVc5X5T2tCHdRxCRw9rSYw1OSgHth7TeR4piYtBo/mKFHYsW2ZhSjVF48soSPpVp8B6fSYfznIuiR/J9wX4N96p2aNtwlSHwWyQDZurYSSN51TkHJm+1sjpYCdY6Wgbzlou2FeU7T+6yBHsPdJxzu5iEYKjXUdstG/RIZjIklZtdZC8w50wV3qSY/jW/ZpR8P4gf7GAg6HD6i29uk0d8mac3mMoAEp3bEyFZxbfk/fxkgz3PvCj7ORuJ+Cs8KBO2LeDGBoDvtYsZWRUeOon7evOFVNt16424gbJzJzH4kTcYL7Dae1XIu3Cuhmf1Ee1Y3jg0FBfoPL98LTmHWqTpmkvLYEJZGTF/4zP1uAoDl3tL5gtjrPgfwoMq5zuWQD+dTvjwUiyIE3OeMEHZkrZkqMQcRGB/kbFMWghZ/Ifqg= X-MS-TrafficTypeDiagnostic: AS8PR01MB8715:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antisp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-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b2667f3c-d01a-4fbb-31b0-08da29833ae5 X-MS-Exchange-CrossTenant-AuthSource: AS8PR01MB7944.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2022 01:54:43.5181 (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: AS8PR01MB8715 Subject: [FFmpeg-devel] [PATCH 2/4] avfilter/vf_colormap: Fix declaration-after-statement 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: LBshCU4ILfdZ Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_colormap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavfilter/vf_colormap.c b/libavfilter/vf_colormap.c index 9edc89f105..a0d6d7be27 100644 --- a/libavfilter/vf_colormap.c +++ b/libavfilter/vf_colormap.c @@ -129,8 +129,7 @@ static void gauss_solve_triangular(const double *A, const int *p, double *b, int } for(int k = n - 1; k > 0; k--) { - b[k] /= A[k + n * k]; - double t = b[k]; + double t = b[k] /= A[k + n * k]; for (int i = 0; i < k; i++) b[i] -= A[k + n * i] * t; } From patchwork Fri Apr 29 01:54:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 35495 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:a885:b0:7f:4be2:bd17 with SMTP id ca5csp35043pzb; Thu, 28 Apr 2022 18:55:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBG6zqODWwYXfkypd1J6GkrM7CRFNGNkHqvp3U3YSmSyXdsDsUKpo0fPT5SVSh89A8yD0z X-Received: by 2002:a50:cd08:0:b0:426:1d9b:4b13 with SMTP id z8-20020a50cd08000000b004261d9b4b13mr9365008edi.360.1651197302223; Thu, 28 Apr 2022 18:55:02 -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 z25-20020a170906815900b006e8bc860775si4961776ejw.784.2022.04.28.18.55.01; Thu, 28 Apr 2022 18:55:02 -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=ji0RCkly; 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 1D01A68B30C; Fri, 29 Apr 2022 04:54:57 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2058.outbound.protection.outlook.com [40.92.90.58]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9FF3168AF13 for ; Fri, 29 Apr 2022 04:54:50 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QJN/xqFj15P2o9avwemphrTffAfHaHqT0cHvfdZJ6o+c46m+eD3eybzx464Je0nqr9oXYdHxWAfxbES/6T0LravAScF08Kyui4fzr3Xn22O1iH0f9Vuy47ufoK3cWYYzrp3W2Qbd/ZLyqRWIEgT8ij4T/TfbXRSOBMnHvb8P7uUvMcggKmmZsMfC4JWl9UkbaGotZmqV//t/XfuhbfzLK0ok1dIKKP5d1A9EaTDiRWCjSYASXYdmsR0oHLPdwZvHOWNEvj09TvYgYIARcMhHyJrfAT6/tdbjG+ztsXWVByq90GWdlIbixwcyXO2I1TJZmbv+O1Hmhaeab9z/BEANYQ== 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UgEA9iOBU0acY1h1sg8JmUKqUIiduT5WnKWlicFESIM=; b=nDhdoucF4ZIOENWMQfe2O1l3+U5XO0IBNcAYG9ekBwlDqEmc/ffg9Mo8ELc9SiYy2Igfncaj5vsLTdNXVLAsoPttNeyc/z9jNhJYEO/Z38Y9A15JrGwpTwJV7H997lZVfds3u9EQ3Qe4j0HKdQhhhICLyjmXbSaiILsyokwb+MOTRWol69phdKjW3KfyK534iHuq2G6RIU/njyB2TZUOTlrNfd/etNkcbC1h1I0nJXdQmYZLhMmMH0qyUFw/DvOF1hcQKfe+uYO4xULHMS0udrqhv3qg82g7aZ4Zpln4P9LTR+08PQUDiZ9V0DE3LnfoTAX1+qSDabTALmK6QJvBug== 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=UgEA9iOBU0acY1h1sg8JmUKqUIiduT5WnKWlicFESIM=; b=ji0RCkly5TwOL920JrausfA+YZis0aH+ijFzYF7VyAZYg7d8WLkO7pkBnZ/xTEptU0vHVFsKQ7XoUmiYY05DViOs93WSRr9W/p/5JRau8T3VKoCGZZ3VuudRO4M/A+AnzGPGztFzo6aSd+87PGvb1gY3oyb5ukajRwaSMMLUDsL3yqy0Kq5zSdvObUxBvMnQKCidB2P7Kv+kAUEXHAQhWuYJKpbhoPM8VRgxt8srjaQFQS7yV7eXVtRjBshhh413EtWwtkV2r06/f4hMzX+zNg90IbQsPCWMfxnePhhE13dQbZnRRKuGWFn/UbhJNcGl3/GgX6Z4IcZtKoAsenACtg== Received: from AS8PR01MB7944.eurprd01.prod.exchangelabs.com (2603:10a6:20b:373::5) by AS8PR01MB8715.eurprd01.prod.exchangelabs.com (2603:10a6:20b:44e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.12; Fri, 29 Apr 2022 01:54:47 +0000 Received: from AS8PR01MB7944.eurprd01.prod.exchangelabs.com ([fe80::1854:2c30:7ba1:c431]) by AS8PR01MB7944.eurprd01.prod.exchangelabs.com ([fe80::1854:2c30:7ba1:c431%6]) with mapi id 15.20.5186.021; Fri, 29 Apr 2022 01:54:47 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Apr 2022 03:54:35 +0200 Message-ID: X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220429015436.666932-1-andreas.rheinhardt@outlook.com> References: <20220429015436.666932-1-andreas.rheinhardt@outlook.com> X-TMN: [9qnYRsCp2l6x2RFSaEjFMnfeHQQd4gIi] X-ClientProxiedBy: ZR0P278CA0037.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1d::6) To AS8PR01MB7944.eurprd01.prod.exchangelabs.com (2603:10a6:20b:373::5) X-Microsoft-Original-Message-ID: <20220429015436.666932-2-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4700fef7-4d20-4ae3-a413-08da29833c78 X-MS-Exchange-SLBlob-MailProps: gjx25WM8ZNVjun0oR/i13Mcum9OXxCMZ1A8cH4qKAaIBO6tmwigFwnjNJOblrendt/6cuSwT/ir4U+qyZRHtt+RTe24vu7NY6fqAEN73lebdoiBw7VtClv48RitTKixgcxEkZmnGcmSurEKCYX0v9sSniGryVu8fAkMkFsYg4F0e4EpfAIawnan+Ume8Y6USZY7uD4Ada8pfwHNvvV6Hsjia/80v42V6vWPlxl+1mdpvKKhtUAs2miffxPNxgWZzBYnjaeVfMnHsC3VxhJz4l+xHL9x7rsN0UugZ3FDHvMved8P1WxGhLSPwoI5d1KPbo3fZvbEw4iYuUBlLP4+IVlBe+1ONa6uFu/JklS7QqKBqbMg6HRCG37G6x7aTfWg6MQmIki73HQ7zWjv92auA3Fi5AJKFPK6sxuu9N9JgbMqOAScbCcTft8A8qumb2bPpNNhGdbRUH6iWI90fAXOqzPRzKtAP7lfM96jE7mclss1yBfIANNwA67lYf4GMnMFmwROo7T1IcO/M+W9yOHhoNSlRumGXhxcfpBHvy2QT/zU2Jn9xBH1pIg8KZ7YpjkVx+CZTv1ComSWf9027tjcYXddU6EFuTAZP4njrMalGRQcNlgDi2n91l8XJ921V7H0cFXBMEO7QtOlDf6flmVxo/wO+kTcC7BTr7evPJUqEN8Trq92eos7sypk1AsxXnnxO8P5v6+Qr2J2k30uJBFUUYivxE2nCu6oXDkCR5Feabu4= X-MS-TrafficTypeDiagnostic: AS8PR01MB8715:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xYuuiYqBHqIaGcOB7iJ6NWKeDNh1spGXgCo1hVTLXXiU5iwCvPv9I5OoTc0OcZ6E86R3OJp2UWme2H5Nx8Z9IvOwPeNJqLIcb19gXiCjmIrPPaunTlBM7Vsz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SlWzpYU0ShmWcjoCzdp4zJ0APzrm7NWU1Poi3pVVkNXAJYSEUGEOEVUSOp9cd6AyyjQVPMWchJfmWCPqUmlAT97DAbQ8JlpXEBQjW+bKsMWKCZO+H6TYgQEbhyHHG3RFCAyskvxpEokhyl1Tz/FB/HklZyBUVTmSgvqrnvpk5Js2HZpK+GsOF5HvWVTCEXCxSaezaKNIdkqVonzwH97KlL960+KUM8FAdEXVgGjhzjnmMFNj2OJDrAgHC1KRxbaq+kap+vBTD26832XYigItEVlpayJ5prg/8OmYhSrOc72BpO3kfp3weG/P12DKJa7IgOCgoHtaPmmDXmqQkshAdTJj8GJVXcDmvC9D12f9a6A38FbLv457tqP+R/Nk8F72AT9fUBXun2C9K9txQLD9rePQiC8u1apgrUhsbuuyN6jPDUbAAaT/TvSKwQGIMhF1BA0unJPK2WVveUrDLP7pvTeGsBpq/yJTYchmcOkO8N8jXhyfBII0+9hIWc8IAEd0GWGukBUpSaXYOWZnYLN9j1YWcpuUYw6g5hGFfM6VG6ie5l0yh9QCDHXfk5uZfxgbYCOfTXKQhanUbKWqfnoziHJoYPmncYBSg9CnVQERj3SxCa1sNLYD3JsbATHSkvc4uN7//AeTUp6gWcfTTySDmpyziLRJ7bWWdCVHqM+FgW3ek3CkVf4LMbglDZTGD8ExU2mWdenJqCf7uqInHTViLxkLw7lKt+vhAL23AYMz8N6bDWg4xZ2SOutTPIvuGFpnQFfs2vJS1hgXkvO0WSvDcxI8QdcJDCW93UvWpV6uEXPXCbPxn44iJksJ0vPGtRNH8aPVAn+6BhqVh89igMMtfF5trCHKJCVP5dcP4z36agtDvBBP17ofqQAEqwT6kWvc4740WvdANBc7s4KtZAJnnQFwuutnjSjY5fIMeFhXFwk1K/y+P1Zf/BA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4700fef7-4d20-4ae3-a413-08da29833c78 X-MS-Exchange-CrossTenant-AuthSource: AS8PR01MB7944.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2022 01:54:47.0672 (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: AS8PR01MB8715 Subject: [FFmpeg-devel] [PATCH 3/4] avfilter/vf_colormap: Remove unnecessary headers 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: 2THup+MJ/BZY In particular remove config_components.h in order to avoid unnecessary rebuilds. Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_colormap.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libavfilter/vf_colormap.c b/libavfilter/vf_colormap.c index a0d6d7be27..d5c5bec39c 100644 --- a/libavfilter/vf_colormap.c +++ b/libavfilter/vf_colormap.c @@ -23,15 +23,10 @@ * Compute a look-up table from map of colors. */ -#include "config_components.h" - #include "libavutil/attributes.h" -#include "libavutil/avstring.h" #include "libavutil/common.h" #include "libavutil/opt.h" -#include "libavutil/pixdesc.h" #include "avfilter.h" -#include "formats.h" #include "internal.h" #include "framesync.h" #include "video.h" From patchwork Fri Apr 29 01:54:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Rheinhardt X-Patchwork-Id: 35496 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:a885:b0:7f:4be2:bd17 with SMTP id ca5csp35087pzb; Thu, 28 Apr 2022 18:55:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/8tG7UcRnFDrbkmbpfvlOCS9K+d7pRogiwyxvYN8ASZyQ3nag3Uic/XUytz5O1n/0WCFJ X-Received: by 2002:a05:6402:524e:b0:423:e919:8eb4 with SMTP id t14-20020a056402524e00b00423e9198eb4mr39230093edd.153.1651197311190; Thu, 28 Apr 2022 18:55:11 -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 h2-20020a50cdc2000000b00425f2e8a5b2si4962621edj.247.2022.04.28.18.55.10; Thu, 28 Apr 2022 18:55:11 -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=Vn8OnGwr; 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 1870A68B361; Fri, 29 Apr 2022 04:55:02 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2058.outbound.protection.outlook.com [40.92.90.58]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id C210768AF4F for ; Fri, 29 Apr 2022 04:54:55 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MAXJi3xvHAo9YBUs+0UAnu7PrMW6RTMTinLUnWjrZxdtvQyfL0UMeJgzlYY7kYULnYGMpIZt/SSpXBzTuplAXvNQSeiQZO3WOmeoDuzz8Qw20Y/j68FlJyJvrTg/difOPfuHWZZmrssYgjvqdK0BC9ZRnI27htxNNM9PwCUioC6llBHxO/A5h+AC4sZss+QlvefjprpPFy1i4UdLj6tOfs/ELe2XzWModimtnvOkdVpJMur8zBWpWn+UOkTI1ET6iOvLGVpxyTGSQmPXr0HV1Z5f+1S4Th3fInOML7x92c2wtQ1Bnq3OlP30yzSpMBGkNmOaM5ltKnCpDbr7/l44Hg== 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=v9D8g7XqFTRWtmIp1E36OnjrmQ9ItR1nsmwra3HfiFo=; b=etdbhKOLxHXJkjr3RSnW15DbzM323nR5uaTtNY2PZmLn4Hk9bO416yHygQS+xX/tqvqGGJGuoj3oAnR3qKtrYeX9c3Uc3My7pL6EMsjaRVPv1x6VGahn+qkGMWrLJq5bbXK9NAKnr4SRtWar2pAcFb4LLH8xEwS8nQdxHALw5SvOxdt29xKDxIoiYGphA9i+krqabbKjvER2WcUJY7Ol2h0J+olSsDDFYMeT1AQdmg9Yn8+UTO+sjgwiT2E08YCmpNcLU5oNELnX02xb2tE3iCULiuv6RQ11AL0ENqTxI15IyDoTWDCbcS01bgvIHECOArZo2LDchrHO3HXYA9iXyA== 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=v9D8g7XqFTRWtmIp1E36OnjrmQ9ItR1nsmwra3HfiFo=; b=Vn8OnGwrCYD/JrsUd1HtmRftzfqIOQDRxwntD/70XIxhts/quRLM0sziEZGaWHVMYCodKL12HgcdXypz4Ep//tLBwqzMCnMwMSrSDzmMj2lhlYUKUooKKLA63zntWvRVuVvsJo7Hw+ouXdjb2BTYvXwjHVOcxrfk7ThQePs3mNW3E+mcKkTeDKp3mg926H9XcWLPArLPC/Z3IB9H8salSw+6tDXoFZY9gEJSwksBamxV8Rve8mllpJmdDz3rhpn7iqMA/RAAAeYzeL0xUM8b8uZQ6w9TqcLYO78q7H0NViC4MXAaoxntA8EBqNBGJGTMs5ZHZzZTCt4zRm9+qPJ2RA== Received: from AS8PR01MB7944.eurprd01.prod.exchangelabs.com (2603:10a6:20b:373::5) by AS8PR01MB8715.eurprd01.prod.exchangelabs.com (2603:10a6:20b:44e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.12; Fri, 29 Apr 2022 01:54:49 +0000 Received: from AS8PR01MB7944.eurprd01.prod.exchangelabs.com ([fe80::1854:2c30:7ba1:c431]) by AS8PR01MB7944.eurprd01.prod.exchangelabs.com ([fe80::1854:2c30:7ba1:c431%6]) with mapi id 15.20.5186.021; Fri, 29 Apr 2022 01:54:49 +0000 From: Andreas Rheinhardt To: ffmpeg-devel@ffmpeg.org Date: Fri, 29 Apr 2022 03:54:36 +0200 Message-ID: X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220429015436.666932-1-andreas.rheinhardt@outlook.com> References: <20220429015436.666932-1-andreas.rheinhardt@outlook.com> X-TMN: [8c7zI0UmffWKEmEmg3ijMRTCIYS0XI2D] X-ClientProxiedBy: ZR0P278CA0037.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:1d::6) To AS8PR01MB7944.eurprd01.prod.exchangelabs.com (2603:10a6:20b:373::5) X-Microsoft-Original-Message-ID: <20220429015436.666932-3-andreas.rheinhardt@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cbf5e947-deb9-489e-2b01-08da29833e47 X-MS-Exchange-SLBlob-MailProps: gjx25WM8ZNVjun0oR/i13Mcum9OXxCMZ0hjg3H95Zn/ZO5eIsIrnHBLjvKaeUMTmdQ+9CFIu6+eh15//TdipuCSFQKsMoJivjiqhBFynMlehVvFm3phe+gcNcVacT70G/ixC2k3I6plBoGJcSOhR7FXKEsx3XrZSQUmxPb0ckpcMQXU86xeCsxH64G+diOMZjn7e9juq+Ot9QzaRwILKs4ftMgrnWzyC7rNjZITux3jjsN1w5DOI1yR7LayCBCp38UDx34ZcxcXh2q9pJuyFBL0AUqHDIgEfYqvWtY9JUqfW71FaiQeHYkEASCr2FL5VZ+2FRwlAfP1hwe1MxpciZLGpxiTwYYutGKGgyQToysDmKkpDcb0nHeOVASLIAjJEBiIOXA9kNDb5N23ZxE77UoW533P723V0q6TNL61/mLAowrOmjK698eOVYbYIDNqAzKzO+rnj38+sl/BEUaD+AovAvqq9FvVbxXc0sAvG4/sHBSY+XodWbCU4ZJBDb3JE/Ek04JPLToFtyUNV9I775fNYzBxBcUUCurFfUEAimFsP5nCEnKjXhRLsXmolNVCjLv920ursNx4on3xGJcjLAXD2hDR2IBJLcpFtNO6f4incdyedx5xxKRD1tZnusIn5IyTAGci1Yb1HAtGABmYxkUGwJVBbvhx06XGtCntZexOSFYFZYUN9blM0NRo6GdzIUlAHd6h+9mdh/2SEeb8QBj9i4FjD6a4lcY36jYMUyt4= X-MS-TrafficTypeDiagnostic: AS8PR01MB8715:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jsiYRNubMZkJ+8n4ZaIqAA1mcKdXajzpvYi4RTAYL2PQaqeRzNnUxf1ZdIQRUpf9AMW1tjWW2sMNyNdXopXUBoD3i4BG2fOQmtNk3PgDxt/pMvp/ZRtlegVPnVyW023tyk4b7FCnODuVAxLILPZipYO1FMpetKDm5GO8bzwuBVI5hKhjb+iFqS9nx/Lt+oCuBaR0Tayen8xxkxBvOr+si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ePd3VXFFQVtP74r/kvnorN3b6D+/70AtWydAl9GpdLVOYXYIKVjx9FmxJNL/cyLKa0VfoCxZ7iagn09HG2AbveXPVvKxWJfHLPJIVtc6094VePS2vm3qVaOiHwUauj1Vsq/CKG8M/2uLUsEgoNUymhx2FrvPP69BmToprEt3P2cxRIGFEyY5H8ZapOl3Lg//LhgWUbzdDU0L/O0by7vSZoCnWphU+TAusGyopNjhaWgkPcpgB2puT9GW/uJr2V9VMv0oHkLnttQ7Jh4YVzh746e2uVuIiZO4I8Yn/FqAKY738UpQb1Rf5nqK7rEXSGhaygFSrH83q5QNI6QvLcmvqoLL97CTcjhjHHa3o5YWlh+VBmYvUKpk8a/YUpWLAj7wVNovyH3AhJh0vl31/Cn+3hucNCi3prR3VJHFItSlyTddsFgZprbRSvS7U+cdnFALosZVFpMsJMOEbE86KW+/QuUNmSQ7xC1OlRQeZPCSW++ile1cQSMz6X9zdSr4eYSLMkdXFFH3mQzL2Ws33jwhLUAa8q+hX+lg5t2ayg6EMh4R1oI0jf3Q/A0l2Xd8qiuqU+ok4nj1oahLUO83J3jSmBrEtNJSM7sXV5GSD4suRPauNq26/C2y6IKVH1p1vKWq43VKGqSDtvuCw1vCqVMQx23Qy+aq6uq9pm+CohTCX5/2UVM2C4EVp8BqTAueZyWz4pwP8WSx7BQfG+YIloUyviBf6l2ChczYJwDsOGGS7Jw8xXvxA5M0M3q9dNeMHj24+VfyZ9TUW0iMUlcdZQipAc8KWxY5YNA7bEsp7b0hl87IZU0qQi8mWK/KUeVJ1Lsp7T6Hc2kFtfrEz+3BDcuIjgUmeQ0l68sA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cbf5e947-deb9-489e-2b01-08da29833e47 X-MS-Exchange-CrossTenant-AuthSource: AS8PR01MB7944.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2022 01:54:49.1620 (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: AS8PR01MB8715 Subject: [FFmpeg-devel] [PATCH 4/4] avfilter/vf_colormap: Avoid allocation of small array 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: dW0KFiijNMLW The number of elements is always two or three. Signed-off-by: Andreas Rheinhardt --- libavfilter/vf_colormap.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/libavfilter/vf_colormap.c b/libavfilter/vf_colormap.c index d5c5bec39c..106333ced8 100644 --- a/libavfilter/vf_colormap.c +++ b/libavfilter/vf_colormap.c @@ -24,6 +24,7 @@ */ #include "libavutil/attributes.h" +#include "libavutil/avassert.h" #include "libavutil/common.h" #include "libavutil/opt.h" #include "avfilter.h" @@ -134,20 +135,15 @@ static void gauss_solve_triangular(const double *A, const int *p, double *b, int static int gauss_solve(double *A, double *b, int n) { - int *p = av_calloc(n, sizeof(*p)); + int p[3] = { 0 }; - if (!p) - return 1; + av_assert2(n <= FF_ARRAY_ELEMS(p)); - if (!gauss_make_triangular(A, p, n)) { - av_freep(&p); + if (!gauss_make_triangular(A, p, n)) return 1; - } gauss_solve_triangular(A, p, b, n); - av_freep(&p); - return 0; }