mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 01:38:36 +00:00

Because the data is compressed (a repeated sample is coded as a negative length followed by the value), when the length is read with the wrong endianess we get completely wrong data. So to get the BE data we cannot just read them assuming LE and byteswap afterward.