Commit 906c1b4b authored by Yaowu Xu's avatar Yaowu Xu
Browse files

changed to avoid code confusion

The previous double if and else code snippets were rather confusing.

Change-Id: Id1b6152fa0e471beb9b20407aa406e109c1471e3
parent 788d7f10
...@@ -241,11 +241,10 @@ void vp8_find_best_ref_mvs(MACROBLOCKD *xd, ...@@ -241,11 +241,10 @@ void vp8_find_best_ref_mvs(MACROBLOCKD *xd,
// If we see a 0,0 vector for a second time we have reached the end of // If we see a 0,0 vector for a second time we have reached the end of
// the list of valid candidate vectors. // the list of valid candidate vectors.
if (!this_mv.as_int) if (!this_mv.as_int && zero_seen)
if (zero_seen) break;
break;
else zero_seen = zero_seen || !this_mv.as_int;
zero_seen = TRUE;
vp8_clamp_mv(&this_mv, vp8_clamp_mv(&this_mv,
xd->mb_to_left_edge - LEFT_TOP_MARGIN + 16, xd->mb_to_left_edge - LEFT_TOP_MARGIN + 16,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment