]> granicus.if.org Git - libvpx/commitdiff
fixed a wrong intialization value
authorYaowu Xu <yaowu@google.com>
Tue, 28 Feb 2012 02:23:15 +0000 (18:23 -0800)
committerYaowu Xu <yaowu@google.com>
Tue, 28 Feb 2012 17:10:34 +0000 (09:10 -0800)
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

index b8020af2235609a8a8e2032f6d58fa43ab2db69d..65fb4e00fcbf7b572a58f2163ea34166b98e1b8a 100644 (file)
@@ -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
         {