You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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 <toqsxw@outlook.com>
This commit is contained in:
committed by
Timo Rothenpieler
parent
8c9a2f40ad
commit
de15422064
@@ -1112,13 +1112,11 @@ static int frame_end(VVCContext *s, VVCFrameContext *fc)
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
ret = ff_h274_hash_verify(s->hash_ctx, &sei->picture_hash, fc->ref->frame, fc->ps.pps->width, fc->ps.pps->height);
|
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, ret < 0 ? AV_LOG_ERROR : AV_LOG_DEBUG,
|
||||||
av_log(s->avctx, AV_LOG_ERROR,
|
"Verifying checksum for frame with decode_order %d: %s\n",
|
||||||
"Verifying checksum for frame with decoder_order %d: failed\n",
|
(int)fc->decode_order, ret < 0 ? "incorrect": "correct");
|
||||||
(int)fc->decode_order);
|
if (ret < 0 && (s->avctx->err_recognition & AV_EF_EXPLODE))
|
||||||
if (s->avctx->err_recognition & AV_EF_EXPLODE)
|
return ret;
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user