From ef8a984d4fba01d7b53b9882869b732f492c2ab5 Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Fri, 8 Nov 2013 11:02:18 +0200 Subject: [PATCH] Fix incorrect blitting of top row during SAO reconstruction. --- src/sao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sao.c b/src/sao.c index b5939336..b7725145 100644 --- a/src/sao.c +++ b/src/sao.c @@ -209,7 +209,7 @@ void sao_reconstruct(picture *pic, pixel *new_y_data, unsigned x_ctb, unsigned y // Copy reconstructed block from tmp buffer to rec image. // picture_blit_pixels(new_rec_y, - &new_y_recdata[(tl.y + rec.y - y) * (LCU_WIDTH) + (tl.x + rec.x - x)], + &new_y_recdata[(tl.y + rec.y - y) * (pic->width) + (tl.x + rec.x - x)], block.x, block.y, LCU_WIDTH, pic->width); }