Skip to content

Commit

Permalink
fix compile error in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
aikiriao committed Jun 24, 2024
1 parent a040704 commit a28bc80
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libs/srla_coder/src/srla_coder.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,11 @@ 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));\
uval__ -= k1pow__;\
BitWriter_PutZeroRun((stream), 1 + (uval__ >> (k2)));\
BitWriter_PutBits((stream), uval__, (k2));\
}\
} while (0);
#else
Expand Down

0 comments on commit a28bc80

Please sign in to comment.