mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
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:
parent
bb33cd3901
commit
2c005cda25
|
@ -1059,7 +1059,7 @@ static unsigned search_frac(encoder_state_t * const state,
|
||||||
height, fracpel_blocks, fme_level);
|
height, fracpel_blocks, fme_level);
|
||||||
|
|
||||||
kvz_pixel tmp_pic[LCU_WIDTH*LCU_WIDTH];
|
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
|
// Search integer position
|
||||||
costs[0] = kvz_satd_any_size(width, height,
|
costs[0] = kvz_satd_any_size(width, height,
|
||||||
|
|
Loading…
Reference in a new issue