summaryrefslogtreecommitdiff
path: root/vp9
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2014-10-22 11:57:09 -0700
committerYaowu Xu <yaowu@google.com>2014-10-22 12:06:27 -0700
commit3f79359e0ac494295773d63570b957a89306d01b (patch)
tree95b047e717f332b7d4f3e7817f4f30be201b823c /vp9
parent0e64aa50739f406390e24b297d03b25ccd6f6c33 (diff)
downloadlibvpx-3f79359e0ac494295773d63570b957a89306d01b.tar
libvpx-3f79359e0ac494295773d63570b957a89306d01b.tar.gz
libvpx-3f79359e0ac494295773d63570b957a89306d01b.tar.bz2
libvpx-3f79359e0ac494295773d63570b957a89306d01b.zip
Fix a subtle issue in re-use inter_pred
The initialization of this_mode_pred does not work when the ref_frame loop ever goes beyond LAST_FRAME. This commit fixes the subtle issue and allows potentially expanding the loop to test GOLDEN_FRAME. Change-Id: Ibbd427a22160d1d9eacb8ed0c87f88d6cef9c0f3
Diffstat (limited to 'vp9')
-rw-r--r--vp9/encoder/vp9_pickmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_pickmode.c b/vp9/encoder/vp9_pickmode.c
index 9d20bae2b..6b92af2db 100644
--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -635,7 +635,7 @@ void vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
// motion vector is at sub-pixel accuracy level for luma component, i.e.,
// the last three bits are all zeros.
if (cpi->sf.reuse_inter_pred_sby) {
- if (this_mode == NEARESTMV) {
+ if (!this_mode_pred) {
this_mode_pred = &tmp[3];
} else {
this_mode_pred = &tmp[get_pred_buffer(tmp, 3)];