mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-20 03:59:25 -05:00
Avoid depop out of bounds
This commit is contained in:
@ -19,7 +19,7 @@ void DepopPrepareCommand::Dump([[maybe_unused]] const ADSP::CommandListProcessor
|
||||
|
||||
void DepopPrepareCommand::Process(const ADSP::CommandListProcessor& processor) {
|
||||
auto samples{reinterpret_cast<s32*>(previous_samples)};
|
||||
auto buffer{std::span(reinterpret_cast<s32*>(depop_buffer), buffer_count)};
|
||||
auto buffer{reinterpret_cast<s32*>(depop_buffer)};
|
||||
|
||||
for (u32 i = 0; i < buffer_count; i++) {
|
||||
if (samples[i]) {
|
||||
|
Reference in New Issue
Block a user