From 54b8fd054de1a6cb3660edece6f733079f50a332 Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Fri, 2 Oct 2020 15:40:23 +0300 Subject: [PATCH] Fix Chroma QP scaling issue --- src/transform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transform.c b/src/transform.c index b95bfabd..bbbe41ea 100644 --- a/src/transform.c +++ b/src/transform.c @@ -133,7 +133,7 @@ int32_t kvz_get_scaled_qp(int8_t type, int8_t qp, int8_t qp_offset) qp_scaled = qp + qp_offset; } else { qp_scaled = CLIP(-qp_offset, 57, qp); - if(qp_scaled < 0) { + if(true||qp_scaled < 0) { //TODO: Enable chroma QP scaling in the SPS headers qp_scaled = qp_scaled + qp_offset; } else { qp_scaled = kvz_g_chroma_scale[qp_scaled] + qp_offset;