shithub: libvpx

Download patch

ref: 800b70a3bf4cc3ba6946f54995c266d2730fe257
parent: 1f20202e2c6c137dd2e3464e2b14bba0fdc289ce
parent: bc9293b8159b68e64d9b73e118b90f9fdadd6d80
author: John Koleszar <jkoleszar@google.com>
date: Tue Aug 30 08:49:24 EDT 2011

Merge "Recalculate zbin_extra only if regular quantizer is being used"

--- a/vp8/encoder/encodeframe.c
+++ b/vp8/encoder/encodeframe.c
@@ -1257,7 +1257,11 @@
                     cpi->zbin_mode_boost = MV_ZBIN_BOOST;
             }
         }
-        vp8_update_zbin_extra(cpi, x);
+
+        /* The fast quantizer doesn't use zbin_extra, only do so with
+         * the regular quantizer. */
+        if (cpi->sf.improved_quant)
+            vp8_update_zbin_extra(cpi, x);
     }
 
     cpi->count_mb_ref_frame_usage[xd->mode_info_context->mbmi.ref_frame] ++;
--