ref: 906c1b4bd91ef5d3ba2bcecc359280ed0b31da45
parent: 788d7f10d4e03b58b02c14b961200ccb3134c4f0
author: Yaowu Xu <yaowu@google.com>
date: Mon Oct 22 09:58:26 EDT 2012
changed to avoid code confusion The previous double if and else code snippets were rather confusing. Change-Id: Id1b6152fa0e471beb9b20407aa406e109c1471e3
--- a/vp8/common/findnearmv.c
+++ b/vp8/common/findnearmv.c
@@ -241,11 +241,10 @@
// If we see a 0,0 vector for a second time we have reached the end of
// the list of valid candidate vectors.
- if (!this_mv.as_int)
- if (zero_seen)
- break;
- else
- zero_seen = TRUE;
+ if (!this_mv.as_int && zero_seen)
+ break;
+
+ zero_seen = zero_seen || !this_mv.as_int;
vp8_clamp_mv(&this_mv,
xd->mb_to_left_edge - LEFT_TOP_MARGIN + 16,
--
⑨