--- branches/dev-api-3/xvidcore/src/motion/motion_est.c 2002/11/20 22:28:25 667 +++ branches/dev-api-3/xvidcore/src/motion/motion_est.c 2002/11/21 10:33:33 668 @@ -137,7 +137,7 @@ Interpolate8x8qpel(const int x, const int y, const int block, const int dir, const SearchData * const data) { // create or find a qpel-precision reference picture; return pointer to it - uint8_t * Reference = (uint8_t *)data->RefQ; + uint8_t * Reference = (uint8_t *)data->RefQ + 16*dir; const int32_t iEdgedWidth = data->iEdgedWidth; const uint32_t rounding = data->rounding; const int halfpel_x = x/2; @@ -182,7 +182,7 @@ Interpolate16x16qpel(const int x, const int y, const int dir, const SearchData * const data) { // create or find a qpel-precision reference picture; return pointer to it - uint8_t * Reference = (uint8_t *)data->RefQ; + uint8_t * Reference = (uint8_t *)data->RefQ + 16*dir; const int32_t iEdgedWidth = data->iEdgedWidth; const uint32_t rounding = data->rounding; const int halfpel_x = x/2;