Skip to content

Commit 74b93da

Browse files
committed
fix wrong CTB size computation
1 parent 909d503 commit 74b93da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libde265/sao.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ void apply_sao(de265_image* img, int xCtb,int yCtb,
6666

6767

6868
// actual size of CTB to be processed (can be smaller when partially outside of image)
69-
const int ctbW = (xC+ctbW>width) ? width -xC : nS;
70-
const int ctbH = (yC+ctbH>height) ? height-yC : nS;
69+
const int ctbW = (xC+nS>width) ? width -xC : nS;
70+
const int ctbH = (yC+nS>height) ? height-yC : nS;
7171

7272

7373
const bool extendedTests = (img->get_CTB_has_pcm(xCtb,yCtb) ||

0 commit comments

Comments
 (0)