From 788a0c9d1835b2721b3f3af96c06d620996c51e4 Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Thu, 10 Oct 2013 11:17:17 +0300 Subject: [PATCH] Bugfix for quantization scaling list selection --- src/transform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transform.c b/src/transform.c index c0ec2d0f..c02deabc 100644 --- a/src/transform.c +++ b/src/transform.c @@ -786,7 +786,7 @@ void quant(encoder_control *encoder, int16_t *coef, int16_t *q_coef, int32_t wid int32_t n; uint32_t dir = 0; uint32_t log2_tr_size = g_convert_to_bit[ width ] + 2; - int32_t scalinglist_type = (block_type == CU_INTRA ? 1 : 3) + (int8_t)("\0\3\1\2"[type]); + int32_t scalinglist_type = (block_type == CU_INTRA ? 0 : 3) + (int8_t)("\0\3\1\2"[type]); int32_t *quant_coeff = g_quant_coeff[log2_tr_size-2][scalinglist_type][qp_scaled%6];