From 2c005cda25d6cf3030462b1c7d6ea5fbb87037b1 Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Mon, 7 Nov 2016 15:46:42 +0200 Subject: [PATCH] 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. --- src/search_inter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search_inter.c b/src/search_inter.c index 73389b68..ebd51524 100644 --- a/src/search_inter.c +++ b/src/search_inter.c @@ -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,