[APU] Fixed logged frame count

Until now info about frames that were provided in log was always incorrect by 1
This commit is contained in:
Gliniak 2022-12-11 13:11:23 +01:00
parent 82ccdd3db5
commit c9cd6f15fc
1 changed files with 1 additions and 1 deletions

View File

@ -696,7 +696,7 @@ void XmaContext::Decode(XMA_CONTEXT_DATA* data) {
XELOGAPU(
"XmaContext {}: Next Offset: {} (Frame: {}/{} Packet: {}/{} Packet "
"Skip: {} - {})",
id(), offset, frame_idx, frame_count, packet_idx,
id(), offset, frame_idx, frame_count - 1, packet_idx,
current_input_packet_count, xma::GetPacketSkipCount(packet),
data->input_buffer_read_offset);
if (frame_idx + 1 >= frame_count) {