summaryrefslogtreecommitdiff
path: root/vp9/encoder/vp9_pickmode.c
diff options
context:
space:
mode:
authorJingning Han <jingning@google.com>2014-07-14 17:25:43 -0700
committerGerrit Code Review <gerrit@gerrit.golo.chromium.org>2014-07-14 17:25:43 -0700
commit2806ea91f5ba28baea31fd7858a54e5f5289590b (patch)
tree41a91b90acb8015179515c72ab91be1f7654bcbe /vp9/encoder/vp9_pickmode.c
parent832e4f3c6dbab566cd2b20a81910fa12b0635ceb (diff)
parentb957439c872638de9484edcac85e604d8c2d3a3c (diff)
downloadlibvpx-2806ea91f5ba28baea31fd7858a54e5f5289590b.tar
libvpx-2806ea91f5ba28baea31fd7858a54e5f5289590b.tar.gz
libvpx-2806ea91f5ba28baea31fd7858a54e5f5289590b.tar.bz2
libvpx-2806ea91f5ba28baea31fd7858a54e5f5289590b.zip
Merge "Fix a potential invalid memory access in non-RD coding flow"
Diffstat (limited to 'vp9/encoder/vp9_pickmode.c')
-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 99f4897f4..7a9436a4f 100644
--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -679,7 +679,7 @@ int64_t vp9_pick_inter_mode(VP9_COMP *cpi, MACROBLOCK *x,
int rate2 = 0;
int64_t dist2 = 0;
- const int dst_stride = pd->dst.stride;
+ const int dst_stride = cpi->sf.reuse_inter_pred_sby ? bw : pd->dst.stride;
const int src_stride = p->src.stride;
int block_idx = 0;