diff options
author | bunnei <bunneidev@gmail.com> | 2018-11-03 00:29:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-03 00:29:15 -0400 |
commit | 6664d7b2c5dcff9846e1a77ffa729a53e6261308 (patch) | |
tree | fb1302ea69400b6fd0e2aab2785e16ee6fdf908a /src | |
parent | 1069eced8482bd01be9fd305447ef94a82c4c999 (diff) | |
parent | 03c26d3406335d6897535850e009d6d37384039a (diff) |
Merge pull request #1636 from ogniK5377/hwopus-bad-assert
Fixed incorrect hwopus assert
Diffstat (limited to 'src')
-rw-r--r-- | src/core/hle/service/audio/hwopus.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/audio/hwopus.cpp b/src/core/hle/service/audio/hwopus.cpp index 7168c6a10..783c39503 100644 --- a/src/core/hle/service/audio/hwopus.cpp +++ b/src/core/hle/service/audio/hwopus.cpp @@ -161,7 +161,7 @@ void HwOpus::OpenOpusDecoder(Kernel::HLERequestContext& ctx) { ASSERT_MSG(channel_count == 1 || channel_count == 2, "Invalid channel count"); std::size_t worker_sz = WorkerBufferSize(channel_count); - ASSERT_MSG(buffer_sz < worker_sz, "Worker buffer too large"); + ASSERT_MSG(buffer_sz >= worker_sz, "Worker buffer too large"); std::unique_ptr<OpusDecoder, OpusDeleter> decoder{ static_cast<OpusDecoder*>(operator new(worker_sz))}; if (opus_decoder_init(decoder.get(), sample_rate, channel_count)) { |