modified the the length to be copied (to compressed_len) inside the frame