[XAM] fix unsigned underflow when packet has no frames

This commit is contained in:
Herman S.
2026-02-20 20:50:27 +09:00
parent 1848583226
commit 233f0056ba
+1 -1
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;
}
};