| Index: source/libvpx/vpx_scale/generic/yv12extend.c
|
| diff --git a/source/libvpx/vpx_scale/generic/yv12extend.c b/source/libvpx/vpx_scale/generic/yv12extend.c
|
| index 0485452aec36d4f41645baa04957df81c41d625a..953527faf84c4d6cecae8ca39e097201bb5656e5 100644
|
| --- a/source/libvpx/vpx_scale/generic/yv12extend.c
|
| +++ b/source/libvpx/vpx_scale/generic/yv12extend.c
|
| @@ -122,17 +122,17 @@ void vp8_yv12_extend_frame_borders_c(YV12_BUFFER_CONFIG *ybf) {
|
|
|
| extend_plane_high(
|
| ybf->u_buffer, ybf->uv_stride,
|
| - (ybf->y_crop_width + 1) / 2, (ybf->y_crop_height + 1) / 2,
|
| - ybf->border / 2, ybf->border / 2,
|
| - (ybf->border + ybf->y_height - ybf->y_crop_height + 1) / 2,
|
| - (ybf->border + ybf->y_width - ybf->y_crop_width + 1) / 2);
|
| + ybf->uv_crop_width, ybf->uv_crop_height,
|
| + uv_border, uv_border,
|
| + uv_border + ybf->uv_height - ybf->uv_crop_height,
|
| + uv_border + ybf->uv_width - ybf->uv_crop_width);
|
|
|
| extend_plane_high(
|
| ybf->v_buffer, ybf->uv_stride,
|
| - (ybf->y_crop_width + 1) / 2, (ybf->y_crop_height + 1) / 2,
|
| - ybf->border / 2, ybf->border / 2,
|
| - (ybf->border + ybf->y_height - ybf->y_crop_height + 1) / 2,
|
| - (ybf->border + ybf->y_width - ybf->y_crop_width + 1) / 2);
|
| + ybf->uv_crop_width, ybf->uv_crop_height,
|
| + uv_border, uv_border,
|
| + uv_border + ybf->uv_height - ybf->uv_crop_height,
|
| + uv_border + ybf->uv_width - ybf->uv_crop_width);
|
| return;
|
| }
|
| #endif
|
|
|