Fix c89 problem to allow compilation with VS2010.

This commit is contained in:
Ari Koivula 2014-04-17 19:12:39 +03:00
parent 1b437a5989
commit 54270f271d

View file

@ -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 // split 64x64, on split flag and on border
if (depth == 0 || split_flag || 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. // Tell clang-analyzer that everything is ok.
assert(depth >= 0 && depth < MAX_DEPTH); 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); filter_deblock_cu(encoder, x, y, depth + 1, edge);
if(!border_x || border_split_x) { if(!border_x || border_split_x) {
filter_deblock_cu(encoder, x + change, y, depth + 1, edge); filter_deblock_cu(encoder, x + change, y, depth + 1, edge);