diff options
author | Yaowu Xu <yaowu@google.com> | 2014-09-24 10:06:44 -0700 |
---|---|---|
committer | Yaowu Xu <yaowu@google.com> | 2014-09-24 11:26:40 -0700 |
commit | d237d483a524dc9188d5721a87287ee3e9a06910 (patch) | |
tree | b6dd92006e5b33ffbd29f667a5e321bbcb96462e /vp9/common/vp9_reconinter.c | |
parent | 148c57d231397900f2a17cb15e8e3efdb6ab6560 (diff) | |
download | libvpx-d237d483a524dc9188d5721a87287ee3e9a06910.tar.gz |
Correct the condition for border extension
As reported in issue #850, the condition for border extension was not
complete. This commit added the case when the scaling is enabled.
This fixes issue #850.
Change-Id: I67768b23f0dcc4ac9a9aa0a0825b0fe8cb85a72e
Diffstat (limited to 'vp9/common/vp9_reconinter.c')
-rw-r--r-- | vp9/common/vp9_reconinter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/common/vp9_reconinter.c b/vp9/common/vp9_reconinter.c index faf5d65ca..e30990460 100644 --- a/vp9/common/vp9_reconinter.c +++ b/vp9/common/vp9_reconinter.c @@ -463,7 +463,7 @@ static void dec_build_inter_predictors(MACROBLOCKD *xd, int plane, int block, // Do border extension if there is motion or the // width/height is not a multiple of 8 pixels. - if (scaled_mv.col || scaled_mv.row || + if (vp9_is_scaled(sf) || scaled_mv.col || scaled_mv.row || (frame_width & 0x7) || (frame_height & 0x7)) { // Get reference block bottom right coordinate. int x1 = ((x0_16 + (w - 1) * xs) >> SUBPEL_BITS) + 1; |