Skip to content

Commit

Permalink
Merge pull request #1 from jsorg71/test-asm
Browse files Browse the repository at this point in the history
change diff_rlgr1/3 to match rlgr1/3 on ending bits
  • Loading branch information
proski authored Mar 28, 2017
2 parents a0a9eb7 + f509a34 commit 3d24a7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rfxencode_diff_rlgr1.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ rfx_encode_diff_rlgr1(sint16 *coef, uint8 *cdata, int cdata_size)
if (bit_count > 0)
{
bits <<= 8 - bit_count;
bits |= ((1 << (8 - bit_count)) - 1) & *cdata;
*cdata = bits;
cdata++;
bit_count = 0;
Expand Down
1 change: 1 addition & 0 deletions src/rfxencode_diff_rlgr3.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ rfx_encode_diff_rlgr3(sint16 *coef, uint8 *cdata, int cdata_size)
if (bit_count > 0)
{
bits <<= 8 - bit_count;
bits |= ((1 << (8 - bit_count)) - 1) & *cdata;
*cdata = bits;
cdata++;
bit_count = 0;
Expand Down

0 comments on commit 3d24a7e

Please sign in to comment.