diff options
| author | David Marcec <dmarcecguzman@gmail.com> | 2018-11-02 15:23:38 +1100 |
|---|---|---|
| committer | David Marcec <dmarcecguzman@gmail.com> | 2018-11-02 15:23:38 +1100 |
| commit | d3d2bb2c3530a4eade440abf638851fe8cf8501a (patch) | |
| tree | fb1302ea69400b6fd0e2aab2785e16ee6fdf908a | |
| parent | a97dc50bc47c73ee9aff7fc848caf0994219c62f (diff) | |
Fixed incorrect hwopus assert
| -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 7168c6a107..783c395030 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)) { |
