From 5981ee55ceef3c599234a5568f1a3546fbc934a3 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Thu, 14 Oct 2010 20:33:43 -0400 Subject: [PATCH] Fix UV plane ac/dc quantizer transposition Typo caused incorrect quantizer to be used for UV blocks. Change-Id: I26faad370a16ea5b35ae49396d17b8903602499e --- src/quant.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/quant.c b/src/quant.c index 314babf5..36993926 100644 --- a/src/quant.c +++ b/src/quant.c @@ -98,8 +98,8 @@ void VP8ParseQuant(VP8Decoder* const dec) { m->y2_mat_[1] = kAcTable[clip(q + dqy2_ac, 127)] * 155 / 100; if (m->y2_mat_[1] < 8) m->y2_mat_[1] = 8; - m->uv_mat_[0] = kDcTable[clip(q + dquv_ac, 117)]; - m->uv_mat_[1] = kAcTable[clip(q + dquv_dc, 127)]; + m->uv_mat_[0] = kDcTable[clip(q + dquv_dc, 117)]; + m->uv_mat_[1] = kAcTable[clip(q + dquv_ac, 127)]; } } }