From patchwork Thu Jan 5 16:14:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhao Zhili X-Patchwork-Id: 39876 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:bc95:b0:ad:ade2:bfd2 with SMTP id fx21csp206090pzb; Thu, 5 Jan 2023 00:14:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXt3v5BaSIyuyzau+nOva3yUlrTZcpEFs71jtyL01ombE1ggE9xurXpqPLQZyVZL5gY5YZ2R X-Received: by 2002:a17:906:7749:b0:7c5:fd:4352 with SMTP id o9-20020a170906774900b007c500fd4352mr58420419ejn.49.1672906489056; Thu, 05 Jan 2023 00:14:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672906489; cv=none; d=google.com; s=arc-20160816; b=BJ/42gg5rSmTg66etRBmVYxqic5iMdq/ZIbKtovUwxItO4MYYGfOMBOEgWyMUXnuCW nblR5wzlWIYES5IdkafpVbffWq3IBxUzBEAakRS0uwIc7DOHTjlJGmF8OYQtmpazedE6 o+4ah7sNwJgFrxFs4ZXr4+suAAavBN1sYMo5UwMrWoSF7ctXbo7Qtr0eh9jwSodyUS60 0wTQy+G1r3Fligx7I2appcVKyDXY+EW1jrR3Z9sm44zKKKP0btvpwM9gWBlfj/BlDbBw fHEYBMxYnJ8xA7UfqWRIkX4vXRds5KmCNiOkWAq6z4wNP0FLrJBqrQZiGbzpTv8M97U5 1XxQ== 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:date :to:from:message-id:dkim-signature:delivered-to; bh=QjH8JhYiUV5MYRReiCW777ObV3fFVnHLWadRLFU6LSw=; b=wbK6W/9Z9Ky3z3bPOGbds9MhYGN1h42FVqj/RHUAl+qe4EWVNze4vRg7yB5XdqGQtE zhL0QGgT/iWZBif1CxQSiUmUkiPgmeVyxGpQwb6C7+rlvTX2HbWIWfn5RERzkbgFEULB 9EZIEFI+uNMBqztAG2e+lZAA7nEaDVdcmK/HNVjAzd79FAza20KM2dB/ieoyYZAyjClZ UpCtayMGo+vzZfnjl0X9pLaDrhuMqSBfCdWhS3H4mOqfed3P517QFi1Ft/Rn4GjD61oY 5U9lJIqRxOMJG+Pn9X7Jd9/xJdWLj4sMipulecFSLdI83hLP7TU3pzSmGYrTWzWmdIGo hmfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@foxmail.com header.s=s201512 header.b=MQ8+oLNy; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id cw15-20020a170906478f00b007ad943d0608si34521176ejc.630.2023.01.05.00.14.48; Thu, 05 Jan 2023 00:14:49 -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=@foxmail.com header.s=s201512 header.b=MQ8+oLNy; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 440CE68BC72; Thu, 5 Jan 2023 10:14:45 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from out203-205-251-59.mail.qq.com (out203-205-251-59.mail.qq.com [203.205.251.59]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9D8C068B752 for ; Thu, 5 Jan 2023 10:14:37 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1672906473; bh=7vbz7jgkZG20Q042xgGW7kpOpkP2dZmgRV10PjCBTyM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=MQ8+oLNydag9Aln58IyJ4CIXWpm7kQP6KFFFeq7nVxbODTKDjPufsFKt4EesE1L2o qeAtUkYEwVbhCC18Fgyny+Qu43lF7ZSBT8DgztB7+MFYZthpu14/aS9L2OxyFjEMVr rKRYw92hTJTLko4/dur12Y22Aa4Imv15JFCzwQm8= Received: from localhost.localdomain ([59.37.125.102]) by newxmesmtplogicsvrsza2-0.qq.com (NewEsmtp) with SMTP id 39F0DCCA; Thu, 05 Jan 2023 16:14:31 +0800 X-QQ-mid: xmsmtpt1672906472t0pwlvkl3 Message-ID: X-QQ-XMAILINFO: Mrv6PNPZjcp6KSFTYWpLoTFA8sJkpk8MRF4kOFyqhxqHzm/HkZ0tooHMxZxwbl M2e5NY+xhPJDs2tYaalShzCXLfNE7Af/miGzDq30VrkGohcf3ple0mNaOjeKIbbOnwb2WTG/8S/V Jb+gmgnBYpjbUAiHOyHTUcKH4eooTcqgpeOysH+ZbuuU5BuXHBkuZw9t/1Wc11NIGpNnOUBSJfCR cOSzejSUwK606vt1RfqUtTMdbLAK9CjpEXmf+3IxnzrTDkpxn+mkJLLqw0rPiK8Lt4V7h33OJrrN HDJbiuiNgxo4qyBKGkhsrpvbRy9RvNKI0Bzkr9ATBwrtn4UQkmbtZBzayCtxU+rl5yMUW8/W+/Y7 fOzwpohbHoZvqBGSQimPk6iuxgIZM9bPR1cxSknILlq1fGTk7j3SAqQoQY85DTBWogMTHt7gzLXx kLemZfy9gwx0QTfSaIPYt/4ulSnnfCuerSjKmwHy2SLxASX8oysD3ajikrncnLFIZ1auVVM+Y1BD QWJzFduMwGlDwOX3EqjZsNl7g8YYYmhSvAi7r8hzHNVcrpB6lh0fJ4IQcgm3vIPeZMDHLwQuIL46 btvJQnhG0FAc5HKHcqsXl8D8uiRwwkvR0rzdeAEVJovE0qMVGWpIJnk7iSwf+V8l4C5iUSue+YEo 8+xIZqLcd9cE3oKbFQhfTVjMQ4ZAaRR/skloyDAyQlOOSKlFGgTR72/gILimOeWDeUz+VcE45BDs ip1uZcqYoANOSENS1JyTCLwkytmGBYcat7jF8U+yZnJ2zZKzfQCnSOh4UcZxKmbJ6NqXP4y9Q2Fg Ngu5CQ6y+qJ9Lw9xVhtN0mBbHPZKVtDQSZyU1ix26Ebpic+0QF6aywevHdTQ0l5QqG65WcqD9Cv7 YWo6PBTbqgWurUXH0kkYRQxPsScqyRlFvHXEgcmy7HRcXk5iHARgKvoFZuQR0FGH2uY5r3+uruTE WJmGJZtSqOZntxocvgdxjmPHw2gCQjlnDb0t62b2o= From: Zhao Zhili To: ffmpeg-devel@ffmpeg.org Date: Fri, 6 Jan 2023 00:14:13 +0800 X-OQ-MSGID: <20230105161416.194463-2-quinkblack@foxmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230105161416.194463-1-quinkblack@foxmail.com> References: <20230105161416.194463-1-quinkblack@foxmail.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [RFC PATCH 1/4] avcodec/hevc_parse: keep nal->nuh_layer_id > 0 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: Zhao Zhili Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: bugB3HqRyoJs From: Zhao Zhili --- libavcodec/hevc_parse.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/hevc_parse.c b/libavcodec/hevc_parse.c index 29dfd479f3..dddb293df6 100644 --- a/libavcodec/hevc_parse.c +++ b/libavcodec/hevc_parse.c @@ -37,8 +37,6 @@ static int hevc_decode_nal_units(const uint8_t *buf, int buf_size, HEVCParamSets for (i = 0; i < pkt.nb_nals; i++) { H2645NAL *nal = &pkt.nals[i]; - if (nal->nuh_layer_id > 0) - continue; /* ignore everything except parameter sets and VCL NALUs */ switch (nal->type) {