PR #20374 opened by frankplow
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20374
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20374.patch


>From f05e2e35768798c2ae17ebf94dd7579635a4361e Mon Sep 17 00:00:00 2001
From: Frank Plowman <[email protected]>
Date: Sat, 30 Aug 2025 12:10:12 +0100
Subject: [PATCH] lavc/cbs: Make error message more descriptive

---
 libavcodec/cbs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/cbs.c b/libavcodec/cbs.c
index 6b2ebe597d..0f54c407f3 100644
--- a/libavcodec/cbs.c
+++ b/libavcodec/cbs.c
@@ -231,7 +231,8 @@ static int cbs_read_fragment_content(CodedBitstreamContext 
*ctx,
             unit->content = NULL;
         } else if (err < 0) {
             av_log(ctx->log_ctx, AV_LOG_ERROR, "Failed to read unit %d "
-                   "(type %"PRIu32").\n", i, unit->type);
+                   "(type %"PRIu32"): %s.\n",
+                   i, unit->type, av_err2str(err));
             return err;
         }
     }
-- 
2.49.1

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to