From eb87b56eab32116536cd33866592e6d23b888299 Mon Sep 17 00:00:00 2001
From: Yaowu Xu <yaowu@google.com>
Date: Mon, 27 Feb 2012 18:23:15 -0800
Subject: [PATCH] fixed a wrong intialization value

The "update" variable was used as a flag in coef_prob update dry run
that tests if a frame should encodes update at all. The wrong init
value forced the update happening always. fixing this has a minor
improvement in low bit rate situation when 8x8 transform is allowed.

Change-Id: Icb498e8d6a62fd074dcbc2065b797cba9237cb51
---
 vp8/encoder/bitstream.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vp8/encoder/bitstream.c b/vp8/encoder/bitstream.c
index b8020af223..65fb4e00fc 100644
--- a/vp8/encoder/bitstream.c
+++ b/vp8/encoder/bitstream.c
@@ -2257,8 +2257,8 @@ static void update_coef_probs(VP8_COMP *cpi)
     /* do not do this if not evena allowed */
     if(cpi->common.txfm_mode == ALLOW_8X8)
     {
-        update = 1;
         /* dry run to see if update is necessary */
+        update = 0;
         i = 0;
         do
         {
-- 
GitLab