Skip to content

Commit

Permalink
change diff_rlgr1/3 to match rlgr1/3 on ending bits
Browse files Browse the repository at this point in the history
  • Loading branch information
jsorg71 committed Mar 28, 2017
1 parent b051aba commit 2d24fce
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 2d24fce

Please sign in to comment.