Fix an error
Fix a naive errror introduced by this cl:
https://aomedia-review.googlesource.com/c/aom/+/130461
The motion search should be allowed for speed <= 2.
STATS_CHANGED
Change-Id: If7a2d7724cc7ae84521bdab1944d39d0c2dc8597
diff --git a/av1/encoder/firstpass.c b/av1/encoder/firstpass.c
index b3ff1ab..375db7d 100644
--- a/av1/encoder/firstpass.c
+++ b/av1/encoder/firstpass.c
@@ -635,7 +635,7 @@
raw_motion_err_list[raw_motion_err_counts] = raw_motion_error;
// TODO(pengchong): Replace the hard-coded threshold
- if (raw_motion_error > LOW_MOTION_ERROR_THRESH && cpi->oxcf.speed > 2) {
+ if (raw_motion_error > LOW_MOTION_ERROR_THRESH || cpi->oxcf.speed <= 2) {
// Test last reference frame using the previous best mv as the
// starting point (best reference) for the search.
first_pass_motion_search(cpi, x, best_ref_mv, &mv, &motion_error);