[XMA] GetFrameNumber: Return correct frame_idx at stream end

This commit is contained in:
Gliniak 2021-06-05 15:36:31 +02:00 committed by Rick Gibbed
parent ca7036707b
commit 313fb3e5a3
1 changed files with 1 additions and 1 deletions

View File

@ -719,7 +719,7 @@ std::tuple<int, int> XmaContext::GetFrameNumber(uint8_t* block, size_t size,
int frame_idx = 0;
while (true) {
if (stream.BitsRemaining() < 15) {
return {packet_idx, -1};
break;
}
if (stream.offset_bits() == bit_offset) {