From patchwork Fri Jul 15 05:06:44 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: 36796 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:43a1:b0:8b:53c6:bec9 with SMTP id i33csp63786pzl; Thu, 14 Jul 2022 22:08:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vQwIILOuG4T0B/nUGKX0MUXY5yU9lXfSSTkM0exb8EbrxQ4Md9hWXZFo+Fov3GunDrq+Te X-Received: by 2002:a17:906:8a5b:b0:72b:50a1:a72c with SMTP id gx27-20020a1709068a5b00b0072b50a1a72cmr12253937ejc.152.1657861721870; Thu, 14 Jul 2022 22:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657861721; cv=none; d=google.com; s=arc-20160816; b=cPvL9MW4Z4jZuTE/QFrNXck6Kz0XTaUCxkEqV/DDjGnRyDhhEs7PdgbSy/4+D1+Te7 6ZbNnV07/tQ0XgMvOsNbEXD292P0IRLy/fGKNgsuGkzORtQdwH9YfOCcknSpjzb92zRW HLFsHj06yK5vJevVt/VoGRANiKsskoiFzCOEWQWHHnDcnQfNz3JVIhJ5dR45zXlqCkpi kJt0KQUOgsO2pqw1fBTHNt6pcDagATChz1+cW9QJCJLWi7I/wmusmrCRbyOk8LMbREFj Qf36ycCEuTLHQMZeFpPcLe6z6CJRVKV506PgVGF3Q5ghquCLJRLub53z3+E+IJqt08li A2Dw== 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=w5hHfmF7McLMy8GGObwN+vHXEItfpBiVv5OZfmrbx1g=; b=i874tL44J9NBQgqXRKLnknAwWW9UXw3Sg7u4fAS7El0Trlu7vN68ProvItCWXKNB+/ vMwQhTq1FQ4ZYPIuom0WYM0tF78XK1YAungopjp57SBfw11R+hLQE2J63je02xxvk0tt 2k7gyYnIQWh6KXKn3pukSNkdsiI7zyz8vQugvEosKaj5vXoBsTbejR18om9H1BLPDSOt anlbxqCgqXuwoSwahnGUrrhy2axx8c1JawIepxJxKGpwmnBCQT9UjUG1pWc3LJ+fs4MY KTUQb6trHGrTYqq58hA2em+pV9tLPpf+ME3hWFXVr9NPvHDtAw847UL49V/ZRTPYsway I4HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=f12ca8qy; 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 qa44-20020a17090786ac00b0071256ff7906si4396183ejc.692.2022.07.14.22.08.41; Thu, 14 Jul 2022 22:08:41 -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=@intel.com header.s=Intel header.b=f12ca8qy; 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 4D7F868B9AE; Fri, 15 Jul 2022 08:08:12 +0300 (EEST) 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 E07ED68B78C for ; Fri, 15 Jul 2022 08:08:04 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657861690; x=1689397690; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=f9AqIUswfIutQPdoE7Zum6MZeTUs/17S56tsXmTZzzo=; b=f12ca8qyinMEnRj7Txx110WwSlEziVyfaFobg5Kw63z7BG6DcuguT9QR GGHMgfUrYRM4gUWIRugIqDCebSUNuWdNkFvAp29sNPH7LaVQzUp4dYef/ nUUeSNCGvMjj3oUfX1lVj6jVfhgsHTc2o5pumvmQooypfthrI/Erod1cx YrqHVF54bAYRWvUNpjZwhWmk550gy7nF2xpWk8b9ca8hT/h6YOE8LwV+N SdF76j+8VQtHcZqElRreAlzKpJuQ4MJM7pCjYA2DR9LTLBFqW0P2bfrsI Y8gYn5OwWEq7uA33wDhOElF5m129kA099GJlTiQCTJvY0al4pklPScEEe w==; X-IronPort-AV: E=McAfee;i="6400,9594,10408"; a="265490999" X-IronPort-AV: E=Sophos;i="5.92,272,1650956400"; d="scan'208";a="265490999" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jul 2022 22:07:57 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,272,1650956400"; d="scan'208";a="654183820" Received: from t.sh.intel.com ([10.239.159.159]) by fmsmga008.fm.intel.com with ESMTP; 14 Jul 2022 22:07:56 -0700 From: Fei Wang To: ffmpeg-devel@ffmpeg.org Date: Fri, 15 Jul 2022 13:06:44 +0800 Message-Id: <20220715050644.879488-4-fei.w.wang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220715050644.879488-1-fei.w.wang@intel.com> References: <20220715050644.879488-1-fei.w.wang@intel.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 4/4] lavc/hevcdec: respect the value of no_output_of_prior_pics_flag 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: Xu Guangxin , Fei Wang Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: XMCMiZuJwZVc From: Xu Guangxin Even resolution or number of picture stores changes, we still need follow no_output_of_prior_pics_flag in next IDR. Tested-by: Fei Wang Signed-off-by: Xu Guangxin --- libavcodec/hevcdec.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index 6544171cf0..6caaaed62b 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -594,15 +594,8 @@ static int hls_slice_header(HEVCContext *s) if (s->ps.sps != (HEVCSPS*)s->ps.sps_list[s->ps.pps->sps_id]->data) { const HEVCSPS *sps = (HEVCSPS*)s->ps.sps_list[s->ps.pps->sps_id]->data; - const HEVCSPS *last_sps = s->ps.sps; enum AVPixelFormat pix_fmt; - if (last_sps && IS_IRAP(s) && s->nal_unit_type != HEVC_NAL_CRA_NUT) { - if (sps->width != last_sps->width || sps->height != last_sps->height || - sps->temporal_layer[sps->max_sub_layers - 1].max_dec_pic_buffering != - last_sps->temporal_layer[last_sps->max_sub_layers - 1].max_dec_pic_buffering) - sh->no_output_of_prior_pics_flag = 0; - } ff_hevc_clear_refs(s); ret = set_sps(s, sps, sps->pix_fmt);