ref: d32c38afbf42b892744d50386e47ae84c52ccfad
parent: 7b3ee0dfa7d2e9060b5d5adcb8ac9b978a4ae07e
author: Jerome Jiang <jianj@google.com>
date: Fri May 11 13:15:10 EDT 2018
Fix valgrind failure on uninitialized values. Change-Id: I917d884c9fab9b15bb092de5675f92225f1cdebd
--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -1771,6 +1771,8 @@
sse_zeromv_normalized < thresh_svc_skip_golden)
continue;
+ if (!(cpi->ref_frame_flags & flag_list[ref_frame])) continue;
+
if (sf->short_circuit_flat_blocks && x->source_variance == 0 &&
frame_mv[this_mode][ref_frame].as_int != 0) {
continue;
@@ -1801,8 +1803,6 @@
frame_mv[this_mode][ref_frame].as_int != 0)
continue;
}
-
- if (!(cpi->ref_frame_flags & flag_list[ref_frame])) continue;
if (const_motion[ref_frame] && this_mode == NEARMV) continue;