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 7CAF64BEA1 for ; Thu, 22 May 2025 18:44:17 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 0215668DDB0; Thu, 22 May 2025 21:44:14 +0300 (EEST) Received: from sender-op-o11.zoho.eu (sender-op-o11.zoho.eu [136.143.169.11]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 4D80C68D117 for ; Thu, 22 May 2025 21:44:08 +0300 (EEST) ARC-Seal: i=1; a=rsa-sha256; t=1747939446; cv=none; d=zohomail.eu; s=zohoarc; b=aR4cO0hdXx9aOtIZfgr+R+LU7ZGNT7sqkbNzNtuFnjPGareI/Upowrs9OmxnE+fPLX4ynBz19fn/AKlh2rpsqMfJzpDvmRNnqqmHc1NBMzj+zADLVx0SHT9aRyDe8KcrVRQZzC7P8uBzWRu5zGHFTOXQ7qbTIqq4lT9sHt29VEc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1747939446; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=CF+O14u8sJOdU5N7h93IpSEubvGz0ZG6MY+nh3+PPwc=; b=QJ5/Wfc9RLYfe+0yQpfwQyy493oe3r9XBD42AmfaJHJPmY9QexBlpqfeNCV6jL1+Zk32WKXW9WVcy27BlbBy/ebGFXi+8YSotGt8QglG5KU4Bz2ym1Fg7zJDsUwuJ0M2Lsuljvc3yilKIKjWtihV7pDY2JOhkSRh00X4OPuOBxA= 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=1747939446; 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=CF+O14u8sJOdU5N7h93IpSEubvGz0ZG6MY+nh3+PPwc=; b=RYKYfBENh71JhHf8ARYr0L78yv5nYsL+hcB5yKJg8gT3x636PpL6AXS+B9ssHR2N ryowp2UZW1GCrTNJ0j6y1osnBwU4kB1Igo7345JU3U2kl67M3eL1jFHTqEQ6bUdSYop BtiQ3PrLpZpsbqcGUv9TRGQZRBcFW3V49BPsqrEI= Received: by mx.zoho.eu with SMTPS id 1747939443889752.065936923412; Thu, 22 May 2025 20:44:03 +0200 (CEST) From: Frank Plowman To: ffmpeg-devel@ffmpeg.org Date: Thu, 22 May 2025 19:43:02 +0100 Message-ID: <20250522184359.64488-1-post@frankplowman.com> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 X-ZohoMailClient: External Subject: [FFmpeg-devel] [PATCH v2] 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 --- Changes since v1: Spotted just after sending this that there was ongoing effort to remove av_strerror calls in favour of av_err2str, so made that substitution here. --- libavcodec/h2645_parse.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavcodec/h2645_parse.c b/libavcodec/h2645_parse.c index 82816999e8..fa57911c08 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,9 @@ 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); + av_log(logctx, AV_LOG_WARNING, + "Failed to parse header of NALU (type %d): \"%s\". Skipping NALU.\n", + nal->type, av_err2str(ret)); 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".