Skip to content

Commit

Permalink
Merge pull request #133 from htyeim/fix_compressed_size
Browse files Browse the repository at this point in the history
fix compressed_size offset(and size)
  • Loading branch information
bryan-harter committed Feb 18, 2022
2 parents 0815f15 + 75e8424 commit ebc4df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdflib/cdfread.py
Original file line number Diff line number Diff line change
Expand Up @@ -2252,7 +2252,7 @@ def _read_vvr_block(self, offset):
section_type = int.from_bytes(block[0:4], 'big')
if section_type == 13:
# a CVVR
compressed_size = int.from_bytes(block[12:16], 'big')
compressed_size = int.from_bytes(block[8:16], 'big')
return gzip.decompress(block[16:16+compressed_size])
elif section_type == 7:
# a VVR
Expand Down

0 comments on commit ebc4df1

Please sign in to comment.