mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-20 22:27:31 +09:00
[MSE] Correct ADTS frame size calculation
This should be bitwise OR rather than logical OR, which just returns 1.
This commit is contained in:
parent
c006541548
commit
1bc04e8910
1 changed files with 2 additions and 2 deletions
|
|
@ -588,8 +588,8 @@ public:
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
size_t header_length = have_crc ? 9 : 7;
|
size_t header_length = have_crc ? 9 : 7;
|
||||||
size_t data_length = (((*aData)[3] & 0x03) << 11) ||
|
size_t data_length = (((*aData)[3] & 0x03) << 11) |
|
||||||
(((*aData)[4] & 0xff) << 3) ||
|
(((*aData)[4] & 0xff) << 3) |
|
||||||
(((*aData)[5] & 0xe0) >> 5);
|
(((*aData)[5] & 0xe0) >> 5);
|
||||||
uint8_t frames = ((*aData)[6] & 0x03) + 1;
|
uint8_t frames = ((*aData)[6] & 0x03) + 1;
|
||||||
MOZ_ASSERT(frames > 0);
|
MOZ_ASSERT(frames > 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue