From e9a6b753739fe5b314911ff6c8da673c5bce5f63 Mon Sep 17 00:00:00 2001 From: Frank Plowman 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; } }