[XMA] fix unsigned underflow when packet has no frames

This commit is contained in:
Herman S.
2026-02-20 20:50:27 +09:00
parent 80a78c509f
commit 337afcf318

View File

@@ -37,7 +37,7 @@ struct kPacketInfo {
uint32_t current_frame_size_;
const bool isLastFrameInPacket() const {
return current_frame_ == frame_count_ - 1;
return frame_count_ == 0 || current_frame_ == frame_count_ - 1;
}
};