jpeg2000: Simplify jpeg2000_decode_packets()