From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id E8F2C4390F for ; Mon, 5 Dec 2022 06:09:59 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 477E668B7DE; Mon, 5 Dec 2022 08:09:56 +0200 (EET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id F3F09680B61 for ; Mon, 5 Dec 2022 08:09:48 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670220594; x=1701756594; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=oap552JxcAIHeVVe+/yTCwcESyYe6YiiYcgguu+ern8=; b=aMCHdtq4xnVlAzpA9/CPmqCf9DflgYG6yafSywBUD+AQFuyzpkMbzFmn yFSRJaM3aDTDfhjU+HK7INGauDKFKNlJs/uneQNvBCGKHt8VxVwuVWh9Y /DSJszEip+sD5sRMITz2KRwn8TLxMFcId9LZhounumE5sVWvIZytWJgiQ rKRUJXlxUzvSzvml8Qo3Ekmf6KJLbus4pc03Bp1Ql1diodIc+KG5ypvyp kXXTCXd7y5ueSpiA+UrT0aWZKrZowjrNkBLRzfpvB5ix3qIFQI4/a99i4 B8iHmBkQimZe5L37qdzhoY50oDF+uugHLXfJrtWD9Wg5GhJ3trcnQ6Xcq w==; X-IronPort-AV: E=McAfee;i="6500,9779,10551"; a="295971336" X-IronPort-AV: E=Sophos;i="5.96,218,1665471600"; d="scan'208";a="295971336" 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:09:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10551"; a="645700055" X-IronPort-AV: E=Sophos;i="5.96,218,1665471600"; d="scan'208";a="645700055" Received: from t.sh.intel.com ([10.239.159.159]) by orsmga002.jf.intel.com with ESMTP; 04 Dec 2022 22:09:44 -0800 From: Fei Wang To: ffmpeg-devel@ffmpeg.org Date: Mon, 5 Dec 2022 14:09:17 +0800 Message-Id: <20221205060929.2511871-1-fei.w.wang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 01/13] lavc/hevc_ps: remove profile limitation of pps_range_extensions() 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Follow spec 7.3.2.3.1. Signed-off-by: Fei Wang --- update: 1. fix uninitialized variable which may cause segment fault. libavcodec/hevc_ps.c | 2 +- tests/ref/fate/hevc-conformance-PS_A_VIDYO_3 | 50 ++++++++++---------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c index 5fe62ec35b..537a3ff99b 100644 --- a/libavcodec/hevc_ps.c +++ b/libavcodec/hevc_ps.c @@ -1658,7 +1658,7 @@ int ff_hevc_decode_nal_pps(GetBitContext *gb, AVCodecContext *avctx, if (get_bits1(gb)) { // pps_extension_present_flag pps->pps_range_extensions_flag = get_bits1(gb); skip_bits(gb, 7); // pps_extension_7bits - if (sps->ptl.general_ptl.profile_idc == FF_PROFILE_HEVC_REXT && pps->pps_range_extensions_flag) { + if (pps->pps_range_extensions_flag) { if ((ret = pps_range_extensions(gb, avctx, pps, sps)) < 0) goto err; } diff --git a/tests/ref/fate/hevc-conformance-PS_A_VIDYO_3 b/tests/ref/fate/hevc-conformance-PS_A_VIDYO_3 index 59b82b72bb..d1d86b2dc9 100644 --- a/tests/ref/fate/hevc-conformance-PS_A_VIDYO_3 +++ b/tests/ref/fate/hevc-conformance-PS_A_VIDYO_3 @@ -3,28 +3,28 @@ #codec_id 0: rawvideo #dimensions 0: 416x240 #sar 0: 0/1 -0, 0, 0, 1, 149760, 0x88619f80 -0, 1, 1, 1, 149760, 0x550bdaf0 -0, 2, 2, 1, 149760, 0x4121f7a2 -0, 3, 3, 1, 149760, 0x210b1d07 -0, 4, 4, 1, 149760, 0x731b7758 -0, 5, 5, 1, 149760, 0x17adb789 -0, 6, 6, 1, 149760, 0x98b2f080 -0, 7, 7, 1, 149760, 0xc0be1f2a -0, 8, 8, 1, 149760, 0xc01e387a -0, 9, 9, 1, 149760, 0xd932822b -0, 10, 10, 1, 149760, 0x16c0a1df -0, 11, 11, 1, 149760, 0x5aa6c005 -0, 12, 12, 1, 149760, 0xd3aab602 -0, 13, 13, 1, 149760, 0x4e6ecab1 -0, 14, 14, 1, 149760, 0x8a86f1f2 -0, 15, 15, 1, 149760, 0x2ed21e1b -0, 16, 16, 1, 149760, 0x80892f24 -0, 17, 17, 1, 149760, 0xb8a952ef -0, 18, 18, 1, 149760, 0x557e57fb -0, 19, 19, 1, 149760, 0x2b825b2c -0, 20, 20, 1, 149760, 0x30b69b5e -0, 21, 21, 1, 149760, 0x802ebf08 -0, 22, 22, 1, 149760, 0x95aadc8e -0, 23, 23, 1, 149760, 0x4d4c02b7 -0, 24, 24, 1, 149760, 0x3fdd1762 +0, 0, 0, 1, 149760, 0x5c4f70f4 +0, 1, 1, 1, 149760, 0xf4628e59 +0, 2, 2, 1, 149760, 0xa28e5bdc +0, 3, 3, 1, 149760, 0xda0e53d7 +0, 4, 4, 1, 149760, 0x42dd334a +0, 5, 5, 1, 149760, 0x25ba9dfe +0, 6, 6, 1, 149760, 0x8854d8ca +0, 7, 7, 1, 149760, 0xc04505d4 +0, 8, 8, 1, 149760, 0xd3fce146 +0, 9, 9, 1, 149760, 0x8bfd88bd +0, 10, 10, 1, 149760, 0x33d965b2 +0, 11, 11, 1, 149760, 0x12746b7a +0, 12, 12, 1, 149760, 0xb7642694 +0, 13, 13, 1, 149760, 0x32b5035f +0, 14, 14, 1, 149760, 0x7bea0af1 +0, 15, 15, 1, 149760, 0x577d4fc8 +0, 16, 16, 1, 149760, 0x023a9c66 +0, 17, 17, 1, 149760, 0x9abe76c4 +0, 18, 18, 1, 149760, 0x2b14dba5 +0, 19, 19, 1, 149760, 0x7b8affcf +0, 20, 20, 1, 149760, 0x21e4c323 +0, 21, 21, 1, 149760, 0xf0b7d9cd +0, 22, 22, 1, 149760, 0x4db0c5bc +0, 23, 23, 1, 149760, 0xf455f752 +0, 24, 24, 1, 149760, 0x569fec99 -- 2.25.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".