diff options
Diffstat (limited to 'src/csn1.cpp')
-rw-r--r-- | src/csn1.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/csn1.cpp b/src/csn1.cpp index d51fe83..e3fa649 100644 --- a/src/csn1.cpp +++ b/src/csn1.cpp @@ -1112,6 +1112,8 @@ csnStreamDecoder(csnStream_t* ar, const CSN_DESCR* pDescr, bitvec *vector, unsig guint8* pui8 = pui8DATA(data, pDescr->offset); gint16 nB1 = no_of_bits & 0x07;/* no_of_bits Mod 8 */ + no_of_bits -= nB1; + while (no_of_bits > 0) { *pui8 = bitvec_read_field(vector, readIndex, 8); |