Fix bug with sub-pixel motion estimation in tiles

The width of the tile was being used to index the frame pixel buffer
instead of the width of the buffer.
This commit is contained in:
Ari Koivula 2016-11-07 15:46:42 +02:00
parent bb33cd3901
commit 2c005cda25

View file

@ -1059,7 +1059,7 @@ static unsigned search_frac(encoder_state_t * const state,
height, fracpel_blocks, fme_level);
kvz_pixel tmp_pic[LCU_WIDTH*LCU_WIDTH];
kvz_pixels_blit(pic->y + orig->y*pic->width + orig->x, tmp_pic, width, height, pic->stride, width);
kvz_pixels_blit(pic->y + orig->y * pic->stride + orig->x, tmp_pic, width, height, pic->stride, width);
// Search integer position
costs[0] = kvz_satd_any_size(width, height,