From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id E284E4BE7D for ; Thu, 22 May 2025 18:02:20 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 1517C68DD84; Thu, 22 May 2025 21:02:17 +0300 (EEST) Received: from sender2-op-o11.zoho.eu (sender2-op-o11.zoho.eu [136.143.171.11]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id C5C4F68C1C5 for ; Thu, 22 May 2025 21:02:09 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; t=1747936926; cv=none; d=zohomail.eu; s=zohoarc; b=McujvSJ/fRbZ6Yu17PC5CrqzVW5Vu2FrGfNB81H7shkEmZPXU5XJT21ulhZf0gj3lnGQkp5Ra6lSp6XWlWVgmPIEwp6o/EX8+UfJLb2skxda4asqLFQiy13tHTMfXXai65Nm2zKlCqyMzTvE14Q8ZDM3RXsNvCRiUy2sbuOTu5M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1747936926; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=SDKhXf+ou78VYHrbLiWS6ZtU/tfTweDyJQ8jRiVrWbk=; b=Lu8DYTE98L4MGsCAP/DSiyOcXeXw6SEgyMKr79duct8wea/eNNbL5LeDL1BEEWERtJXdUwqu79m8huPTADNLlFAsitPL6LXHqHy8iFbqm9q1wwI8OqYDaQqhjJwjJkJCqPC1LH1CRz4MfY44nf/C8NbvobuNjZRcFNUYEByKYa4= 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=1747936926; 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=SDKhXf+ou78VYHrbLiWS6ZtU/tfTweDyJQ8jRiVrWbk=; b=araiYemdQQ5wmHbs9+Gk0M8Bh4ZZmudAkhBl9b63npJVXaEPOVuzp8J8dgQmChMh 3o9/2UER2qaTCBbotyzXLcg6tPEDE+vIGOl0eswEHWJbIF9dDenefmAKmAvbAF0Z4qr Dm5/6BM3qKoHslSNCmV0nSYxvTHu2pifvSy59KhI= Received: by mx.zoho.eu with SMTPS id 1747936925288222.05012418387503; Thu, 22 May 2025 20:02:05 +0200 (CEST) From: Frank Plowman To: ffmpeg-devel@ffmpeg.org Date: Thu, 22 May 2025 19:01:17 +0100 Message-ID: <20250522180201.63184-1-post@frankplowman.com> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 X-ZohoMailClient: External Subject: [FFmpeg-devel] [PATCH] lavc/h2645_parse: More descriptive NALU header error 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: Signed-off-by: Frank Plowman --- libavcodec/h2645_parse.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/h2645_parse.c b/libavcodec/h2645_parse.c index 82816999e8..4b9a9e0891 100644 --- a/libavcodec/h2645_parse.c +++ b/libavcodec/h2645_parse.c @@ -22,6 +22,7 @@ #include "config.h" +#include "libavutil/error.h" #include "libavutil/intmath.h" #include "libavutil/intreadwrite.h" #include "libavutil/mem.h" @@ -588,8 +589,11 @@ int ff_h2645_packet_split(H2645Packet *pkt, const uint8_t *buf, int length, } else ret = h264_parse_nal_header(nal, logctx); if (ret < 0) { - av_log(logctx, AV_LOG_WARNING, "Invalid NAL unit %d, skipping.\n", - nal->type); + char err_str[AV_ERROR_MAX_STRING_SIZE]; + av_strerror(ret, err_str, AV_ERROR_MAX_STRING_SIZE); + av_log(logctx, AV_LOG_WARNING, + "Failed to parse header of NALU (type %d): \"%s\". Skipping NALU.\n", + nal->type, err_str); continue; } -- 2.47.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".