Check if input_buffer exist

In some really specific cases there is a chance that
one of the buffers is valid, but its pointer is null
This commit is contained in:
Gliniak 2021-08-18 18:31:47 +02:00
parent 0eaf032b71
commit c80ea14d9d
1 changed files with 3 additions and 0 deletions

View File

@ -346,6 +346,9 @@ void XmaContext::Decode(XMA_CONTEXT_DATA* data) {
data->input_buffer_read_offset, data->current_buffer,
current_input_buffer);
if (!current_input_buffer) {
return;
}
size_t input_buffer_0_size =
data->input_buffer_0_packet_count * kBytesPerPacket;
size_t input_buffer_1_size =