From patchwork Mon Dec 5 06:09:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wang, Fei W" X-Patchwork-Id: 39608 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a21:999a:b0:a4:2148:650a with SMTP id ve26csp3010717pzb; Sun, 4 Dec 2022 22:11:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf7K08Xbcu6nzBtFQcixxjY1qUPx4jPbjUaBatm8u9jmBET0Nl4JWL2eRrDraAJoADC70M5q X-Received: by 2002:a17:906:aacb:b0:7c0:89b3:b9da with SMTP id kt11-20020a170906aacb00b007c089b3b9damr22826341ejb.275.1670220693021; Sun, 04 Dec 2022 22:11:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670220693; cv=none; d=google.com; s=arc-20160816; b=tRMx5/pvc3PZyAFng5bM/mil5TTwoMkwEztH1BX353N15gdACFocdCxmst+/JI1PQa efJjmGZlN701kPJc6+r6RhDd9QViTQaps1LLWFCD99WUGwIe+A/PRuNJxmMNNQSOoOuK g2h2DLygpqjNEqsjcavJ4hss9/ldW5J92T07eRMDazLG2p2Br6HxC90G5u+Cu/bD6+Mp 0uq+JuKLJ12NHEMrTe5/dlTfUQpHiJrXyWkA4FXbIg0xins9rIIlL4JAehygRZcDLUlJ 2GE6SwBzsugis4AYmzswnbnsok0dRIUyA6dxSQ2XtsgPEA7dmYYg8zpzo8jVf7TmBe5M 9hSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc: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=LLCoUL1Y5ywOJOr41nReVTyM9DcUTlsgtscX7nrW6G0=; b=tyCL3psT/K6gk0giFAUJAIiyQ+75o9rbUQ0hWawLFxtei/o0oCy+I1PJods1IZb6wQ BZLaEY02fEjAPxQ2RB52DkFgC1M0A2vyG0SlcXm4n7ZgKI3HJkrcSJqqS2Bz28in2X7s E0ehFvF+zYgKnZyAKgyGQZwb1Yivbe4DoJHZ6OKyTy6cPZR//1s+cZwUovv/s3xbqRMf jYHFLvww6+kjNfqqDeFwgdzrhWwZZ4PHxIl6Yi7eJXHjXCe7Pi8OceW8GHYl9/zz0c9q I7lxrbRInja6DXjPebcIJQ5KtmO07ynldHWrknJgQddSyEYYnkOgKqYAb7MDGz8WpP/+ kX5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=QC6SgbJA; 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 f12-20020a056402354c00b0046c97ea0a5asi2663550edd.289.2022.12.04.22.11.32; Sun, 04 Dec 2022 22:11:33 -0800 (PST) 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=@intel.com header.s=Intel header.b=QC6SgbJA; 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 483D768BCBC; Mon, 5 Dec 2022 08:10:13 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 2102168BC8C for ; Mon, 5 Dec 2022 08:10:07 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670220608; x=1701756608; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EOIJ5tAAJuBBGhjJVSvTwosLxPXhjmBMmpAjC6/v2hU=; b=QC6SgbJAcnP8CXMG9r8pENGNTTkreEEqnXLPZkUHSaUzmCVmzuQqxeUt 5TiKFfXVlYI93q+1soxzT9I0ppeSIRwYl5XlkSf+XZ1eV8F88KuB4QYWf tVB4+JfCtebxjIqYQd2UVu0Moam6jf2y9xrQLlP9sE4mEQELV1GNggDGD F9rWI64SsJvj6MuTbsgGNBqBV3kpw2WK6kDhqq3xlS6YT8FyISHscSVBy sDlj6xbpWBN82+tV+d0dBoBiU1GRyCKiSrUjv/3EcH+Sji0yk1QGlDpVZ OkphrcWv6OiRoKHz29hZ5dw5E8ueu3mhAcE/RNMvA+fkzcorL8Zw6KQOP A==; X-IronPort-AV: E=McAfee;i="6500,9779,10551"; a="295971415" X-IronPort-AV: E=Sophos;i="5.96,218,1665471600"; d="scan'208";a="295971415" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2022 22:10:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10551"; a="645700142" X-IronPort-AV: E=Sophos;i="5.96,218,1665471600"; d="scan'208";a="645700142" Received: from t.sh.intel.com ([10.239.159.159]) by orsmga002.jf.intel.com with ESMTP; 04 Dec 2022 22:10:02 -0800 From: Fei Wang To: ffmpeg-devel@ffmpeg.org Date: Mon, 5 Dec 2022 14:09:29 +0800 Message-Id: <20221205060929.2511871-13-fei.w.wang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221205060929.2511871-1-fei.w.wang@intel.com> References: <20221205060929.2511871-1-fei.w.wang@intel.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 13/13] lavc/vaapi_hevc: Remove duplicate code 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: Fei Wang Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 5ZHjzLw3qpCI Signed-off-by: Fei Wang --- libavcodec/vaapi_hevc.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c index ca14052d56..b3ff2f7344 100644 --- a/libavcodec/vaapi_hevc.c +++ b/libavcodec/vaapi_hevc.c @@ -538,12 +538,6 @@ static int vaapi_hevc_decode_slice(AVCodecContext *avctx, pic->last_slice_param.rext.ChromaOffsetL0[i][1] = sh->chroma_offset_l0[i][1]; } - for (i = 0; i < 15 && i < sh->nb_refs[L0]; i++) { - pic->last_slice_param.rext.luma_offset_l0[i] = sh->luma_offset_l0[i]; - pic->last_slice_param.rext.ChromaOffsetL0[i][0] = sh->chroma_offset_l0[i][0]; - pic->last_slice_param.rext.ChromaOffsetL0[i][1] = sh->chroma_offset_l0[i][1]; - } - if (sh->slice_type == HEVC_SLICE_B) { for (i = 0; i < 15 && i < sh->nb_refs[L1]; i++) { pic->last_slice_param.rext.luma_offset_l1[i] = sh->luma_offset_l1[i];