From patchwork Fri Jun 7 13:00:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anton Khirnov X-Patchwork-Id: 49642 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a59:c209:0:b0:460:55fa:d5ed with SMTP id d9csp1008814vqo; Fri, 7 Jun 2024 06:04:39 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUcliW46t0ttC2K7fCR7FVdJbdBP40tf7jJbkdiamKbdHiUiIRh3hyWhCG14EpNEzX5I5snnROG8x7fhXqgw29iT/8IfFiVMRaLSQ== X-Google-Smtp-Source: AGHT+IH/rZuAVO1wGRvyrErf2rWB+MrnnAso8oRLqrcM2yIWejBAYlVL1+c9v0/6JRoOlmEmCdqk X-Received: by 2002:a2e:bb86:0:b0:2ea:e98e:4395 with SMTP id 38308e7fff4ca-2eae98e4782mr7772471fa.32.1717765479313; Fri, 07 Jun 2024 06:04:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717765479; cv=none; d=google.com; s=arc-20160816; b=nJEtVHQ6YRmw2lNvHrBv00OUioUBGzOqF3WpWKhPRoofR3lXtlLE1Bvx2qpoagSM2s WV16q7G6chuMLj7K/X89scNmG4WkY2YOwihTqtowKMDJjuKQQbeIB7bg9RjIYARi3+cy 3FgwyKtNRdLNlxh2JqiRNklHdfGxob59gXUzDUk3aqy5Q4vp2JBDTGfut71hsvfFUDXl lE+365Qp65JSZjNN5T+ZPc98IWKTyUk2b+kL0t6GRjdnz1GRfp56/paRNiFH2Il4gjUN Kf/VIb277Q5tBKuoI8G4x1l+4uKlaO8+Z8o6yJLthI3vEAgN8S6dQbXu0o0baAFBuu6U IY/w== 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=UfHe3DSZRmMYKk8a6eRjk63BgNmVH/z/ALC0vzwYGOE=; fh=YOA8vD9MJZuwZ71F/05pj6KdCjf6jQRmzLS+CATXUQk=; b=M4IWG2SwKqnBRa2N/6Mbq5gTnoSQuNBfahbx5SKyUDXdpjddB7YmAXDV5qggFwAMod KQIzDDdmhz3IA4m0QPpgqUT+bcnaUNBcIoLZJN/miinUbPhaVj/aD03nAd7woRD5HYlG iFb/A+kP0dcKSj90Ia+Yp1ifAPdn48MYGF6ZBLzT/TbNIIXFy/JKeVYU+STfr0xmZkAp hcdMuhdAMuvtMlAsYq+pXZ58Xu1SJYKCePXK9A28KdCup9eyrMYpd0AlpSI18+lCOPbQ Oi1FoHB45Fliy0LHdJoRc7CzWHyiTOOz/d2yETkWVJEptEFfwa7S+9UD9qk+wdVt2VKS ZqoA==; 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=U32l3MmQ; 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 a640c23a62f3a-a6c80728776si178649166b.781.2024.06.07.06.04.38; Fri, 07 Jun 2024 06:04:39 -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=U32l3MmQ; 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 C972968D7DF; Fri, 7 Jun 2024 16:03:55 +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 7335468D763 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=U32l3MmQ; dkim-atps=neutral Received: from localhost (mail1.khirnov.net [IPv6:::1]) by mail1.khirnov.net (Postfix) with ESMTP id 2A3EA4E13 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 1S-mBPC428RE for ; Fri, 7 Jun 2024 15:03:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=khirnov.net; s=mail; t=1717765421; bh=220zx5VGtLhns2hla/+QM5DxLudPfcr86M+OahMTX44=; h=From:To:Subject:Date:In-Reply-To:References:From; b=U32l3MmQVbMxj+wvhlkgEt0ZW6WK0c1+F7I+GyIEyBIUjb2BaM4ubLb9hFaz87smm GAHt4D7r6kHIZgXCF4mBOjDlakAQ/zdGj3ddVxtlewEmz/LXm/Xwa4CgpqwtMK/EjS 5Hvpnh6HPsuKmOc3Kl2wmfiDvfswttI8tpPVq4R7R/f69Tnw/x8RbmK0jiHTkmgp5Q a/c445FJcoLsn6scFBsQon+uqbEITt56gnHGe4h8LWaAVoN2weykx/T8luWFZqkK2Z V1qiGURHVtLqmiTv/zJEBbnMCiYyT+rj+XJc1mrRrRVEeKF5ep10m3NgSMFMTHoNws 91ozH1OXELhlw== 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 175B04D9D 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 6616D3A059B 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:59 +0200 Message-ID: <20240607130135.9088-3-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 03/39] lavc/hevcdec: drop a redundant assignment in hevc_decode_frame() 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: qOeB3IrnK+oi The exact same code is executed at the beginning of decode_nal_units() --- libavcodec/hevc/hevcdec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c index 43cbc45062..46db7923fe 100644 --- a/libavcodec/hevc/hevcdec.c +++ b/libavcodec/hevc/hevcdec.c @@ -3369,7 +3369,6 @@ static int hevc_decode_frame(AVCodecContext *avctx, AVFrame *rframe, old, s->dovi_ctx.cfg.dv_profile); } - s->cur_frame = s->collocated_ref = NULL; ret = decode_nal_units(s, avpkt->data, avpkt->size); if (ret < 0) return ret;