From patchwork Tue Jun 14 01:23:02 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: 36215 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:1a22:b0:84:42e0:ad30 with SMTP id cj34csp801332pzb; Mon, 13 Jun 2022 18:30:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsWTgXvew+iIbuZi8bu298JgxISpjRiu8+ZIJDozqx2i0x6JVYQnZbtuEldEVJAk8a4bhy X-Received: by 2002:a17:906:4e89:b0:711:c64d:ca4a with SMTP id v9-20020a1709064e8900b00711c64dca4amr2132742eju.203.1655170237810; Mon, 13 Jun 2022 18:30:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655170237; cv=none; d=google.com; s=arc-20160816; b=jr9+fxxeB6vUvzizzzMQ0mbHGjbtwoEVk/RBBl6pmNlB7+5sB96fiBKIXF/I6aK0He woFcEQgthpNivIoHFoSP8K0BDoeLg0jHkL0ebRZlxEyQOzPAWfeM3F+fiHanAVD8eMg9 c9jiawrrHFjvmK1B5STq6A1ovG6xyOSXZ4om7fAUTtRFqnHfFeLXs+qQh14GK/43SS5r ThkWJNLeBRN14DOVPgCj6lk+XXOTdclXnYouXHZ+aQrfTb/5W5rhT7i3U0BF6jVRiyYh MmYelwdwjFz8x6EwjqtDj2xjh47xRtWR6s4Vcx7VLX2fLzaISKBaEeXaX3cQJTIPpjBs a43Q== 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=bp4Ct9aqTs/zdLEot0OIroNrETDduwmwo1Ml8UDOUGE=; b=vMZ68tXOuNvBZKz9z9JitQaiydvoWhcVlgS2BTHxiyRrhfL3+o+2IXjWcmZLQbL2ek 2D/VeAzVQn/7GR5lYY3r9GnU5pVA/b0RveCtAwAlYU94hJEcqkTEJDiLmOqsiamnlPIO ULeWIkRI48RXLvsMWG1rbFHzXrmB1dPpyaSiMT5Tdy5P3Ghj1PVyRwvu1qfRCwoA8BT6 79mbcto1PRpFFlTHBA/dbUbjGkoUeU1r1KfFMrx9ryg52eIRr60JOG42+1PRQyYOBtgJ /tKoWa4XQ54CnMSQDpBt5JhFjkQfzTwN952ERNEGrqyBn7A2lDAiV4y/zssmEIuh5g9+ CtAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b="MjJoh/R8"; 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 e10-20020a056402190a00b0042de3d661d1si12070767edz.426.2022.06.13.18.30.37; Mon, 13 Jun 2022 18:30:37 -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="MjJoh/R8"; 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 60C8B68B64A; Tue, 14 Jun 2022 04:30:15 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8BE5468B333 for ; Tue, 14 Jun 2022 04:30:08 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655170213; x=1686706213; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=zrfoRLnOLbzuKy/UCGBhe1ch8MZKZ3opJz0TucHgacQ=; b=MjJoh/R8mrWTbD8oFDwgKQ2sPuoajI6geSUOWNPjQeUm+Crzonh6sx72 kO1D+SQCvvvadtxkjC+B9qPYSZZwuD7mFwkWC7hLSCRUbhsPBCyD1Bho7 ObIuAmzerfYo6ImTTGL7E4u3xXX85iiUcD77c+S4no4XrgIOT5GxinNiT LH4e7GW6k+S2RxZHlhm2sf3os5iLQFBwfnrIxpwSsyJgToTgJ2ZKLDI49 3p6TKVdWAB7YRiuwdg1UKkG2yYZZZ8jY1ubnjrF/nQad8AyILFUkvfu8H MLTmueftQeQsKcgerCt4j//cfbvSz0s3kKm65urXc7FvelZx4ygf8sTLW A==; X-IronPort-AV: E=McAfee;i="6400,9594,10377"; a="342432976" X-IronPort-AV: E=Sophos;i="5.91,298,1647327600"; d="scan'208";a="342432976" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jun 2022 18:29:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,298,1647327600"; d="scan'208";a="686378091" Received: from t.sh.intel.com ([10.239.159.147]) by fmsmga002.fm.intel.com with ESMTP; 13 Jun 2022 18:29:54 -0700 From: Fei Wang To: ffmpeg-devel@ffmpeg.org Date: Tue, 14 Jun 2022 09:23:02 +0800 Message-Id: <20220614012302.2808428-4-fei.w.wang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220614012302.2808428-1-fei.w.wang@intel.com> References: <20220614012302.2808428-1-fei.w.wang@intel.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 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: IM8W49DFP6he 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 99785aa5d1..b0317339a2 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);