Skip to content

Commit

Permalink
fix compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
aikiriao committed Jun 24, 2024
1 parent a28bc80 commit cec32e0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions libs/srla_coder/src/srla_coder.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,10 @@ static void Rice_PutCode(struct BitStream *stream, uint32_t k, uint32_t uval)
/* 1段目で符号化 */\
BitWriter_PutBits((stream), k1pow__ | (uval), (k1) + 1);\
} else {\
uint32_t uval__ = uval;\
/* 1段目のパラメータで引き、2段目のパラメータでRice符号化 */\
uval__ -= k1pow__;\
BitWriter_PutZeroRun((stream), 1 + (uval__ >> (k2)));\
BitWriter_PutBits((stream), uval__, (k2));\
const uint32_t tmp_uval__ = (uval) - k1pow__;\
BitWriter_PutZeroRun((stream), 1 + (tmp_uval__ >> (k2)));\
BitWriter_PutBits((stream), tmp_uval__, (k2));\
}\
} while (0);
#else
Expand Down

0 comments on commit cec32e0

Please sign in to comment.