[MSE] Correct ADTS frame size calculation

This should be bitwise OR rather than logical OR, which just returns 1.
This commit is contained in:
trav90 2018-05-25 08:28:17 -05:00 committed by Roy Tam
commit 1bc04e8910

View file

@ -588,8 +588,8 @@ public:
return false;
}
size_t header_length = have_crc ? 9 : 7;
size_t data_length = (((*aData)[3] & 0x03) << 11) ||
(((*aData)[4] & 0xff) << 3) ||
size_t data_length = (((*aData)[3] & 0x03) << 11) |
(((*aData)[4] & 0xff) << 3) |
(((*aData)[5] & 0xe0) >> 5);
uint8_t frames = ((*aData)[6] & 0x03) + 1;
MOZ_ASSERT(frames > 0);