summaryrefslogtreecommitdiff
path: root/vpx_scale/generic
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2013-07-16 17:12:45 -0700
committerYaowu Xu <yaowu@google.com>2013-07-16 17:12:45 -0700
commita8f9b9c94ff077a95d0572c79601956d4599db67 (patch)
tree18319c81a56319158676e39522ed57726848bb09 /vpx_scale/generic
parentf53d007b9e5ccb499e62bd345b976968bf6af322 (diff)
downloadlibvpx-a8f9b9c94ff077a95d0572c79601956d4599db67.tar
libvpx-a8f9b9c94ff077a95d0572c79601956d4599db67.tar.gz
libvpx-a8f9b9c94ff077a95d0572c79601956d4599db67.tar.bz2
libvpx-a8f9b9c94ff077a95d0572c79601956d4599db67.zip
added missed replacement
Change-Id: I2bce6f381fef0729b4dd5eb09ccb609f2eddd7ef
Diffstat (limited to 'vpx_scale/generic')
-rw-r--r--vpx_scale/generic/yv12extend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vpx_scale/generic/yv12extend.c b/vpx_scale/generic/yv12extend.c
index 60df0af56..cc8da2ac0 100644
--- a/vpx_scale/generic/yv12extend.c
+++ b/vpx_scale/generic/yv12extend.c
@@ -103,9 +103,9 @@ static void extend_frame(YV12_BUFFER_CONFIG *ybf,
const int c_h = (ybf->y_crop_height + subsampling_y) >> subsampling_y;
const int c_et = ext_size >> subsampling_y;
const int c_el = ext_size >> subsampling_x;
- const int c_eb = (ybf->border + ybf->y_height - ybf->y_crop_height +
+ const int c_eb = (ext_size + ybf->y_height - ybf->y_crop_height +
subsampling_y) >> subsampling_y;
- const int c_er = (ybf->border + ybf->y_width - ybf->y_crop_width +
+ const int c_er = (ext_size + ybf->y_width - ybf->y_crop_width +
subsampling_x) >> subsampling_x;
assert(ybf->y_height - ybf->y_crop_height < 16);