From de15422064f3ec2832ee1e007e81f1b248a85e75 Mon Sep 17 00:00:00 2001 From: Wu Jianhua Date: Sun, 8 Jun 2025 23:15:24 +0800 Subject: [PATCH] avcodec/vvc/dec: fix typo and also output log when the checksum is correct It's helpful for developers and the same as the hevcdec. Signed-off-by: Wu Jianhua --- libavcodec/vvc/dec.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/libavcodec/vvc/dec.c b/libavcodec/vvc/dec.c index 90fff3a03f..6f52306080 100644 --- a/libavcodec/vvc/dec.c +++ b/libavcodec/vvc/dec.c @@ -1112,13 +1112,11 @@ static int frame_end(VVCContext *s, VVCFrameContext *fc) return ret; ret = ff_h274_hash_verify(s->hash_ctx, &sei->picture_hash, fc->ref->frame, fc->ps.pps->width, fc->ps.pps->height); - if (ret < 0) { - av_log(s->avctx, AV_LOG_ERROR, - "Verifying checksum for frame with decoder_order %d: failed\n", - (int)fc->decode_order); - if (s->avctx->err_recognition & AV_EF_EXPLODE) - return ret; - } + av_log(s->avctx, ret < 0 ? AV_LOG_ERROR : AV_LOG_DEBUG, + "Verifying checksum for frame with decode_order %d: %s\n", + (int)fc->decode_order, ret < 0 ? "incorrect": "correct"); + if (ret < 0 && (s->avctx->err_recognition & AV_EF_EXPLODE)) + return ret; } }