shithub: libvpx

Download patch

ref: f74c55eb038a861ed641841dbc9a56e6f3253d19
parent: a28139c849b6c305ff293332c33e7c30a83a7b7b
author: Deb Mukherjee <debargha@google.com>
date: Mon Mar 11 04:49:14 EDT 2013

Minor optimization in mv entropy adaptation

Adds a check to exit from the increment_nmv_count function when the
increment is 0.

Change-Id: I99c1e342d351f7800e23590f9c2419881bf1d708

--- a/vp9/common/vp9_entropymv.c
+++ b/vp9/common/vp9_entropymv.c
@@ -138,6 +138,7 @@
                                     int incr,
                                     int usehp) {
   int s, z, c, o, d, e, f;
+  if (!incr) return;
   assert (v != 0);            /* should not be zero */
   s = v < 0;
   mvcomp->sign[s] += incr;
--