diff --git a/src/filter.c b/src/filter.c index 74f84910..03f03a53 100644 --- a/src/filter.c +++ b/src/filter.c @@ -398,11 +398,12 @@ void filter_deblock_cu(const encoder_control * const encoder, int32_t x, int32_t // split 64x64, on split flag and on border if (depth == 0 || split_flag || border) { + // Split the four sub-blocks of this block recursively. + uint8_t change = 1 << (MAX_DEPTH - 1 - depth); + // Tell clang-analyzer that everything is ok. assert(depth >= 0 && depth < MAX_DEPTH); - // Split the four sub-blocks of this block recursively. - uint8_t change = 1 << (MAX_DEPTH - 1 - depth); filter_deblock_cu(encoder, x, y, depth + 1, edge); if(!border_x || border_split_x) { filter_deblock_cu(encoder, x + change, y, depth + 1, edge);