ref: e99e4a64e0ca6a00335a2d4171c2e71cc3064ca7
parent: b84fa548fb0160c7fb4a03168730079cd1feefd0
parent: eb43c8ebfc033506a4392b1de164181fae80c032
author: Marco Paniconi <[email protected]>
date: Tue Nov 24 14:14:35 EST 2015
Merge "vp9 non-rd pickmode: Fix logic in reference masking."
--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -1252,7 +1252,8 @@
if (const_motion[ref_frame] && this_mode == NEARMV)
continue;
- if (!(this_mode == ZEROMV && ref_frame == LAST_FRAME)) {
+ if (!(frame_mv[this_mode][ref_frame].as_int == 0 &&
+ ref_frame == LAST_FRAME)) {
i = (ref_frame == LAST_FRAME) ? GOLDEN_FRAME : LAST_FRAME;
if ((cpi->ref_frame_flags & flag_list[i]) && sf->reference_masking)
if (x->pred_mv_sad[ref_frame] > (x->pred_mv_sad[i] << 1))