[XMA] GetFrameNumber: Return correct frame_idx at stream end
This commit is contained in:
parent
ca7036707b
commit
313fb3e5a3
|
@ -719,7 +719,7 @@ std::tuple<int, int> XmaContext::GetFrameNumber(uint8_t* block, size_t size,
|
||||||
int frame_idx = 0;
|
int frame_idx = 0;
|
||||||
while (true) {
|
while (true) {
|
||||||
if (stream.BitsRemaining() < 15) {
|
if (stream.BitsRemaining() < 15) {
|
||||||
return {packet_idx, -1};
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stream.offset_bits() == bit_offset) {
|
if (stream.offset_bits() == bit_offset) {
|
||||||
|
|
Loading…
Reference in New Issue