diff options
| author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2022-07-27 23:17:18 +0100 |
|---|---|---|
| committer | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2022-07-27 23:17:18 +0100 |
| commit | c7ea6ef8a3298751b793f54dc3eb898c30438df2 (patch) | |
| tree | 3a06dd50f0f882bb43db0ba959846b0246b67250 /src/audio_core/renderer/command/mix | |
| parent | 4b9cfe1d024eb215c0ca99432fd991d5c9b3ac9e (diff) | |
Avoid depop out of bounds
Diffstat (limited to 'src/audio_core/renderer/command/mix')
| -rw-r--r-- | src/audio_core/renderer/command/mix/depop_prepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_core/renderer/command/mix/depop_prepare.cpp b/src/audio_core/renderer/command/mix/depop_prepare.cpp index 2ee076ef6b..69bb78ccc8 100644 --- a/src/audio_core/renderer/command/mix/depop_prepare.cpp +++ b/src/audio_core/renderer/command/mix/depop_prepare.cpp @@ -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]) { |
