From 8b0eb665558bf0dbe5735fe1561e06f137a9e3c5 Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Fri, 8 Nov 2013 15:04:53 +0200 Subject: [PATCH] Fix bug in SAO reconstruction. --- src/sao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sao.c b/src/sao.c index 6049047e..24b71201 100644 --- a/src/sao.c +++ b/src/sao.c @@ -156,7 +156,7 @@ void sao_calc_block_dims(const picture *pic, const sao_info *sao, vector2d *rec, if (rec->x + LCU_WIDTH > pic->width) { block->x = pic->width - rec->x; } - if (a_ofs.x == 1 || b_ofs.y == 1) { + if (a_ofs.x == 1 || b_ofs.x == 1) { block->x -= 1; br->x += 1; }