From 74b93dab56a695a0caf6444a19bcac929b439308 Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Tue, 3 Jun 2014 19:58:08 +0200 Subject: [PATCH] fix wrong CTB size computation --- libde265/sao.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libde265/sao.cc b/libde265/sao.cc index 3b500df27..f0c9f2c27 100644 --- a/libde265/sao.cc +++ b/libde265/sao.cc @@ -66,8 +66,8 @@ void apply_sao(de265_image* img, int xCtb,int yCtb, // actual size of CTB to be processed (can be smaller when partially outside of image) - const int ctbW = (xC+ctbW>width) ? width -xC : nS; - const int ctbH = (yC+ctbH>height) ? height-yC : nS; + const int ctbW = (xC+nS>width) ? width -xC : nS; + const int ctbH = (yC+nS>height) ? height-yC : nS; const bool extendedTests = (img->get_CTB_has_pcm(xCtb,yCtb) ||