From: Deb Mukherjee Date: Mon, 11 Mar 2013 15:49:14 +0000 (-0700) Subject: Minor optimization in mv entropy adaptation X-Git-Tag: v1.3.0~1151^2~70^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f74c55eb038a861ed641841dbc9a56e6f3253d19;p=libvpx 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 --- diff --git a/vp9/common/vp9_entropymv.c b/vp9/common/vp9_entropymv.c index 185cc9a09..85f93085c 100644 --- a/vp9/common/vp9_entropymv.c +++ b/vp9/common/vp9_entropymv.c @@ -138,6 +138,7 @@ static void increment_nmv_component(int v, 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;