ref: cca774c7df21b710cb298358575e05b7c4407303
parent: 86b0042f44fb7e6f316468c452354127f15e9316
parent: da9f762e24881e1cf4ee05dcee22a7594a47e278
author: Marco Paniconi <[email protected]>
date: Thu Nov 3 19:12:05 EDT 2016
Merge "vp9: Non-rd pickmode: fix logic in reference masking."
--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -1573,7 +1573,7 @@
!(frame_mv[this_mode][ref_frame].as_int == 0 &&
ref_frame == LAST_FRAME)) {
if (usable_ref_frame < ALTREF_FRAME) {
- if (!force_skip_low_temp_var) {
+ if (!force_skip_low_temp_var && usable_ref_frame > LAST_FRAME) {
i = (ref_frame == LAST_FRAME) ? GOLDEN_FRAME : LAST_FRAME;
if ((cpi->ref_frame_flags & flag_list[i]))
if (x->pred_mv_sad[ref_frame] > (x->pred_mv_sad[i] << 1))