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 70E6C4A8B9 for ; Thu, 18 Apr 2024 20:27:12 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 84D4668D274; Thu, 18 Apr 2024 23:27:09 +0300 (EEST) Received: from sender-op-o11.zoho.eu (sender-op-o11.zoho.eu [136.143.169.11]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 9854B68C09C for ; Thu, 18 Apr 2024 23:27:03 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; t=1713472020; cv=none; d=zohomail.eu; s=zohoarc; b=EIt6a1PS/93DSRGh4p2FCKqy6OSeN+lxxZNixhpO8a87noi+DS9f4tivV6UDcchNWeChdcqr540xmRYATzW+OIDFXLfgNFrJPIdM216L4Divnb1VhehuMTWULOa8dVy0wFLCZpUDNZPpHW/CG9dYnbUZbeMAoJeMcdlz38SHb5Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1713472020; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=gcSMl9KWYu/5VK4MDzMFKJ21QXQZZvnLtndd2XPgxJg=; b=bwEYe+fgcfHEY7WSbEUZVjiqw15A02N6xrUNY69WkLJSjF4eZMpwxMgTcqTa7AejNYnGiqM/VgQEtZzV64sBklEiFyuL5Ed7fc3VLJvKItwyZOtjBWX94Kyf1ZWFUGL9JbE+zIMh/yVhsgMUxDEyFEVC8kOS9NVnszwLWeQIctA= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=frankplowman.com; spf=pass smtp.mailfrom=post@frankplowman.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1713472020; s=zmail; d=frankplowman.com; i=post@frankplowman.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=gcSMl9KWYu/5VK4MDzMFKJ21QXQZZvnLtndd2XPgxJg=; b=L6H/rVbqbp9wZ5lb7sGOQG46nORCNcEZ6TJMysavJre64RZ+WkNCf9MYfYmIos03 +MTjifDDKKD4hycrl+CTLyBTeVPH84jnQtBTboFSNSOaIwjPTHCIVBUfhMDgZnlGp10 oz/Ye7O76n+Cx4KdQavqvfSfDtpek3slij5jYRZQ= Received: from localhost.localdomain (frankplowman.com [51.89.148.29]) by mx.zoho.eu with SMTPS id 171347201883149.6793274817428; Thu, 18 Apr 2024 22:26:58 +0200 (CEST) From: Frank Plowman To: ffmpeg-devel@ffmpeg.org Date: Thu, 18 Apr 2024 21:26:20 +0100 Message-ID: <20240418202653.91943-1-post@frankplowman.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-ZohoMailClient: External Subject: [FFmpeg-devel] [PATCH v2] lavc/vvc: Skip enhancement layer NAL units 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: Frank Plowman 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: The native VVC decoder does not yet support quality/spatial/multiview scalability. Bitstreams requiring this feature could cause crashes. Patch fixes this by skipping NAL units which are not in the base layer, warning the user while doing so. Signed-off-by: Frank Plowman --- Changes since v1: * Change missing feature string from "Multilayer" to "Decoding of multilayer bitstreams" for clarity. libavcodec/vvc/dec.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavcodec/vvc/dec.c b/libavcodec/vvc/dec.c index a4fc40b40a..6aeec27eaf 100644 --- a/libavcodec/vvc/dec.c +++ b/libavcodec/vvc/dec.c @@ -785,6 +785,12 @@ static int decode_nal_unit(VVCContext *s, VVCFrameContext *fc, const H2645NAL *n s->temporal_id = nal->temporal_id; + if (nal->nuh_layer_id > 0) { + avpriv_report_missing_feature(fc->log_ctx, + "Decoding of multilayer bitstreams"); + return AVERROR_PATCHWELCOME; + } + switch (unit->type) { case VVC_VPS_NUT: case VVC_SPS_NUT: -- 2.44.0 _______________________________________________ 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".