2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 01:47:42 +00:00

ANIM3 Bitstream reader fixes

This commit is contained in:
Jack Andersen
2016-09-09 10:16:54 -10:00
parent d8b141bcfa
commit 529223e311
5 changed files with 11 additions and 11 deletions

View File

@@ -182,6 +182,7 @@ u32 CFBStreamedCompression::ComputeBitstreamWords(const u8* chans)
for (u32 c=0 ; c<boneChanCount ; ++c)
{
chans += 0x8;
totalBits += 1;
totalBits += *reinterpret_cast<const u32*>(chans) & 0xff;
totalBits += *reinterpret_cast<const u32*>(chans + 0x4) & 0xff;
totalBits += *reinterpret_cast<const u32*>(chans + 0x8) & 0xff;
@@ -202,6 +203,7 @@ u32 CFBStreamedCompression::ComputeBitstreamWords(const u8* chans)
for (u32 c=0 ; c<boneChanCount ; ++c)
{
chans += 0x6;
totalBits += 1;
totalBits += *reinterpret_cast<const u8*>(chans + 0x2);
totalBits += *reinterpret_cast<const u8*>(chans + 0x5);
totalBits += *reinterpret_cast<const u8*>(chans + 0x8);