Fix 2x scaling bug

Reported by Alexander Voronov

Change-Id: I463ba323cc9f4e345b7e6f759565725737793086
This commit is contained in:
Deb Mukherjee
2014-09-11 23:46:56 -07:00
parent 1db0b0ff1b
commit 09faceb706

View File

@@ -467,13 +467,13 @@ static void dec_build_inter_predictors(MACROBLOCKD *xd, int plane, int block,
int y1 = ((y0_16 + (h - 1) * ys) >> SUBPEL_BITS) + 1; int y1 = ((y0_16 + (h - 1) * ys) >> SUBPEL_BITS) + 1;
int x_pad = 0, y_pad = 0; int x_pad = 0, y_pad = 0;
if (subpel_x || (sf->x_step_q4 & SUBPEL_MASK)) { if (subpel_x || (sf->x_step_q4 != SUBPEL_SHIFTS)) {
x0 -= VP9_INTERP_EXTEND - 1; x0 -= VP9_INTERP_EXTEND - 1;
x1 += VP9_INTERP_EXTEND; x1 += VP9_INTERP_EXTEND;
x_pad = 1; x_pad = 1;
} }
if (subpel_y || (sf->y_step_q4 & SUBPEL_MASK)) { if (subpel_y || (sf->y_step_q4 != SUBPEL_SHIFTS)) {
y0 -= VP9_INTERP_EXTEND - 1; y0 -= VP9_INTERP_EXTEND - 1;
y1 += VP9_INTERP_EXTEND; y1 += VP9_INTERP_EXTEND;
y_pad = 1; y_pad = 1;