[XMA] fix unsigned underflow when packet has no frames
This commit is contained in:
@@ -37,7 +37,7 @@ struct kPacketInfo {
|
|||||||
uint32_t current_frame_size_;
|
uint32_t current_frame_size_;
|
||||||
|
|
||||||
const bool isLastFrameInPacket() const {
|
const bool isLastFrameInPacket() const {
|
||||||
return current_frame_ == frame_count_ - 1;
|
return frame_count_ == 0 || current_frame_ == frame_count_ - 1;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user