Message ID | 20240607130135.9088-39-anton@khirnov.net |
---|---|
State | New |
Headers | show
Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:c209:0:b0:460:55fa:d5ed with SMTP id d9csp1013190vqo; Fri, 7 Jun 2024 06:10:46 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXUjtyTlSQXCRwBr+CnMA4564GEAW8Ehq3Jx3lg6nA1jtyiLLXJ8cjf4oKLOC+LHfNVUBj75bFtcjnAn+zcU2WdQ6XE0ndXtFKc0w== X-Google-Smtp-Source: AGHT+IF0YbrLouFYrHrUabdNouI8/M58WQPjs8sW1RDgXyxSY/cfCioj24XO8/BJmf+p7dwxsBdO X-Received: by 2002:a17:906:b7d6:b0:a68:f0ce:9f2e with SMTP id a640c23a62f3a-a6cd7a84558mr173776866b.44.1717765846328; Fri, 07 Jun 2024 06:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717765846; cv=none; d=google.com; s=arc-20160816; b=CjtJLoa/eVsKTAZj0oFQazXqLKXTjdrRZCqU/hHKQwy8/nfGFtDZWuHscftfD+DVUk KXy6WtOPpsO0o/my/lpC4Vxi+YfJmyj0LVoF8LL9dhhEKgzUo41Pz+qvZrewNFeK5+Gs wN9VN1AERML0a2JMMNJ3jEB/08AEHvefN448MbIOi8dBI3RqoOyr4Z6EFHgdCmZX6CiQ gS879GhNZx/5C8wWz+VxAnzDf59KU2XrcMTdWaCgANqhol0OjwlDP8FmVbuIl7+34wfN AoQnNL1oxXV9OGavitlZTZzvAqk3t6PYxFrjN5mK8mS27URC2m81WZBCS7GStSwBnYNH gq2w== 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:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to; bh=Ks2tHE+NHnmkLMpTfKlb8iioiR+VwOvYZZNcIjOleUo=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=lTw6m5q8bjciLzy1xB5wTcFA5L6MQbgVx2aipShbYMgVkSs0rADeSncADJeG0NgPVt 2WDJs5s3EZAXPFVqi+oKuLus7IALI6gD6+Gv2P4i12F3SukA/TSWZ6Z9kCLQSquP1xcr pmgCZaOQ1t0lYbeKVYLq8fVIxSlBjX8UJqvGVlQX6VuUScxtPJf6yjcVWRzicZKzM9n7 2q8Mrc4e0Xrp6dRhJwAzUnCBT4m1fakPuFbtLfZF/mYO4HxskIEbydRJZAdQRD6ehYjc S9zzTs7CkjEajIcY4qzXaNaM1TmUZURS7VF7v4uhFlj3Xlxm8sgTbJCHVdZSsK+OveWx HRMA==; 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=mMbRHIrR; 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: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a6c80591ba0si181631766b.15.2024.06.07.06.10.45; Fri, 07 Jun 2024 06:10:46 -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=mMbRHIrR; 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 1408A68D897; Fri, 7 Jun 2024 16:08:54 +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 9127F68D851 for <ffmpeg-devel@ffmpeg.org>; Fri, 7 Jun 2024 16:08:45 +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=mMbRHIrR; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id 440524D42 for <ffmpeg-devel@ffmpeg.org>; Fri, 7 Jun 2024 15:08:45 +0200 (CEST) Received: from mail1.khirnov.net ([IPv6:::1]) by localhost (mail1.khirnov.net [IPv6:::1]) (amavis, port 10024) with ESMTP id 79JcWbY6euFM for <ffmpeg-devel@ffmpeg.org>; Fri, 7 Jun 2024 15:08:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1717765724; bh=0sN1dazct/DsTAcwLJLjMVR2Kbjg4AaUzccktPVrIlU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mMbRHIrRuVL6fflSIcwLjLQyV1YtT24MIjfqKFMHV077kO9HCLY1JOx8w/8NI5JsQ 9ZOyg9VkOmJvdjo8nbj6J1Vr9Z6se26p6SH0IZVByBMke5skOH8HLkB1Z192rm3WE8 cjJGWrYJTFA8vRiJJn5buFfQIFo0yNk0ZJxq9tKvB8Zas/0sArrj7DQzPKMRALPBnH SML097E9H4YnzoZ5LosL8BAsC86Lxd9HWBA/LCRnfWYSPHQbM1QTxY4if+u+MhxcxN VMHCrwcdshMGeEqWEqRpMiWSbYE1iIhbIiNFJV3Uv9ySjZ0tJm1ZkYvX+gPuK2IzOy 1D6LWZ/2P3GnQ== 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 978E84D76 for <ffmpeg-devel@ffmpeg.org>; Fri, 7 Jun 2024 15:08:44 +0200 (CEST) Received: from libav.khirnov.net (libav.khirnov.net [IPv6:::1]) by libav.khirnov.net (Postfix) with ESMTP id 2DB773A27C7 for <ffmpeg-devel@ffmpeg.org>; Fri, 07 Jun 2024 15:03:36 +0200 (CEST) From: Anton Khirnov <anton@khirnov.net> To: ffmpeg-devel@ffmpeg.org Date: Fri, 7 Jun 2024 15:01:35 +0200 Message-ID: <20240607130135.9088-39-anton@khirnov.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240607130135.9088-1-anton@khirnov.net> References: <20240607130135.9088-1-anton@khirnov.net> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 39/39] lavc/hevcdec: constify source frame in hevc_ref_frame() X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> X-TUID: iCrICRg9+eu9 |
Series |
[FFmpeg-devel,01/39] lavc/hevcdec: do not free SliceHeader arrays in pic_arrays_free()
|
expand
|
On Fri, Jun 7, 2024 at 3:19 PM Anton Khirnov <anton@khirnov.net> wrote: > --- > libavcodec/hevc/hevcdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c > index 5fc55d5de9..88f2bcecad 100644 > --- a/libavcodec/hevc/hevcdec.c > +++ b/libavcodec/hevc/hevcdec.c > @@ -3449,7 +3449,7 @@ static int hevc_decode_frame(AVCodecContext *avctx, > AVFrame *rframe, > return avpkt->size; > } > > -static int hevc_ref_frame(HEVCFrame *dst, HEVCFrame *src) > +static int hevc_ref_frame(HEVCFrame *dst, const HEVCFrame *src) > { > int ret; > Set overall ok
diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c index 5fc55d5de9..88f2bcecad 100644 --- a/libavcodec/hevc/hevcdec.c +++ b/libavcodec/hevc/hevcdec.c @@ -3449,7 +3449,7 @@ static int hevc_decode_frame(AVCodecContext *avctx, AVFrame *rframe, return avpkt->size; } -static int hevc_ref_frame(HEVCFrame *dst, HEVCFrame *src) +static int hevc_ref_frame(HEVCFrame *dst, const HEVCFrame *src) { int ret;