Fix endianness error when reading plane offsets from frame header.