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, };