since code now use get_bits_long, allocate padding buffer