From patchwork Fri Jun 7 13:00:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 49639 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:c209:0:b0:460:55fa:d5ed with SMTP id d9csp1008262vqo; Fri, 7 Jun 2024 06:03:57 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWHdT/dHP7xGQ7PJiDv1/Fm+r1F26oWHXk7bFUjL/EwSL0ryya2sjLWW/+sJNcPl/xOyVzhcnzSXG3GIP3iqGRB1StHlGO9djMFzQ== X-Google-Smtp-Source: AGHT+IGwhSJU3DjP75f2WrwbdKdR1aH+ePkfkXpzAE3hThBkVzyAPCwyUjx6T08AfKzdQJgXYvlg X-Received: by 2002:a50:9559:0:b0:572:9b21:e0c9 with SMTP id 4fb4d7f45d1cf-57c508b0330mr1992580a12.14.1717765436722; Fri, 07 Jun 2024 06:03:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717765436; cv=none; d=google.com; s=arc-20160816; b=dIPtTm7Y0PhkbD4sHXr12+KgvHjDMNmjs5WvUxv9vsn9U1jXZJ/+BexGOnEK4U7wDb aV3tDmARcObeexWhb8Ps+0pNzrH61iuY6KlCDeYthWZy0573++0tkzZmh+ikFuJQtFWT 1R22n2JXQ1AXnpR/u2On5Ai98edhcNxfpdxH7wjTP/VRtrc4TlInEGzNjdgU8eew5t3p S26Q6kfp+eQ2Ag8LgiBhZY78npWmEdqZNvIz2SnIrB67A5/0zMSV0GNMXcX928WTJ7Mf lE3LCGbP6KAP4+M/bzqozoVf25LFeWJfgAtgm1q0wKfNbGViV3/MfPPRp9cqZlPwyhch Y28A== 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=igEawNpgqrST8rYj+EZL1obqATuL8D1jBFF8BAs8ZLU=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=cin2AvGB6xdy1Vxs1FjA7ibEVzEH3Bi5sxOGwWvxFloiHS0bWefXXY1YUReNjGp3rV 4Q3rT5IZ/2SkBJTTbTMr2SlYFr17XSWAp7k2vzlCcaDZv0aLf6oquAMr7j89JZD3kpM1 +5j825DUGpwm3ghRZJsXDng183FBRtDERiYwv2Gv7CicKyf5Dh5B17xb9BSuFpdTb/GS D0qP+L2Mc02ITP9hEnhtT6ED2ovL78I5IeWDg5Vo8RLxmX/jg7kwjxuQuqwfnckSiNd2 KUv8X+JpE7Us0uFF1eGnNB5UgduvdPDza05i7NDioytOEhV7RWiANVAAmhKjpgON+rJv VVwA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@khirnov.net header.s=mail header.b=jz5iPJuw; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 4fb4d7f45d1cf-57aae0fa264si1861219a12.177.2024.06.07.06.03.56; Fri, 07 Jun 2024 06:03:56 -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=@khirnov.net header.s=mail header.b=jz5iPJuw; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id C047368D761; Fri, 7 Jun 2024 16:03:51 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail1.khirnov.net (quelana.khirnov.net [94.230.150.81]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 68FA968D70F for ; Fri, 7 Jun 2024 16:03:44 +0300 (EEST) Authentication-Results: mail1.khirnov.net; dkim=pass (2048-bit key; unprotected) header.d=khirnov.net header.i=@khirnov.net header.a=rsa-sha256 header.s=mail header.b=jz5iPJuw; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id BAAED4D76 for ; Fri, 7 Jun 2024 15:03:43 +0200 (CEST) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id VMyJwlf56tcC for ; Fri, 7 Jun 2024 15:03:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1717765421; bh=jNKOsUuRYMiA9B+1Vicc1n2fWMdLosMc9c3f4XbS2bg=; h=From:To:Subject:Date:From; b=jz5iPJuw0lIn9W3aP0/K4h+tuAmhwYXkfGzvcy5euguJfv11fFvfL5pTa2FEuhaGZ eyJShmCBHHa7aN+V0F4dNjwB9ivfk1rBzc95TML0sn+xDFFtWwl8RI3brmujNa4cXN VjjxzC/bsUOSq+5fKdqRls38FzFyN7ju78WdyzL2q6tExQvD7XREb3ixSTNZ6FUgxY 3DQkmyz5I1VoeRNR0bUv5Rd0AoZeR+SOqXPKxbsY84kn/2u8KqEkyjJLdId8jG+Dvr ozjrj8blSteUydD34RrsIG+ogSG97zqFZwXOuRKqE0dhLbuL0bQ4OS2UKHRvGL9+3B emIhU5HU8DN/A== Received: from libav.khirnov.net (libav.khirnov.net [IPv6:2a00:c500:561:201::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "libav.khirnov.net", Issuer "smtp.khirnov.net SMTP CA" (verified OK)) by mail1.khirnov.net (Postfix) with ESMTPS id 13E4D4D42 for ; Fri, 7 Jun 2024 15:03:41 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 4E33F3A01C5 for ; Fri, 07 Jun 2024 15:03:34 +0200 (CEST) From: Anton Khirnov To: ffmpeg-devel@ffmpeg.org Date: Fri, 7 Jun 2024 15:00:57 +0200 Message-ID: <20240607130135.9088-1-anton@khirnov.net> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 01/39] lavc/hevcdec: do not free SliceHeader arrays in pic_arrays_free() 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: 6+y5dwj6w6Un SliceHeader.{entry_point_offset,size,offset} are not derived from frame size and do not need to be freed here. --- libavcodec/hevc/hevcdec.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c index 4e0df4d033..d317c1471a 100644 --- a/libavcodec/hevc/hevcdec.c +++ b/libavcodec/hevc/hevcdec.c @@ -84,10 +84,6 @@ static void pic_arrays_free(HEVCContext *s) av_freep(&s->horizontal_bs); av_freep(&s->vertical_bs); - av_freep(&s->sh.entry_point_offset); - av_freep(&s->sh.size); - av_freep(&s->sh.offset); - ff_refstruct_pool_uninit(&s->tab_mvf_pool); ff_refstruct_pool_uninit(&s->rpl_tab_pool); }