Fix 2x scaling bug
Reported by Alexander Voronov Change-Id: I463ba323cc9f4e345b7e6f759565725737793086
This commit is contained in:
@@ -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 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;
|
||||
x1 += VP9_INTERP_EXTEND;
|
||||
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;
|
||||
y1 += VP9_INTERP_EXTEND;
|
||||
y_pad = 1;
|
||||
|
||||
Reference in New Issue
Block a user