summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/audio/hwopus.cpp
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2018-11-02 05:23:38 +0100
committerDavid Marcec <dmarcecguzman@gmail.com>2018-11-02 05:23:38 +0100
commit03c26d3406335d6897535850e009d6d37384039a (patch)
treefb1302ea69400b6fd0e2aab2785e16ee6fdf908a /src/core/hle/service/audio/hwopus.cpp
parentMerge pull request #1615 from lioncash/input (diff)
downloadyuzu-03c26d3406335d6897535850e009d6d37384039a.tar
yuzu-03c26d3406335d6897535850e009d6d37384039a.tar.gz
yuzu-03c26d3406335d6897535850e009d6d37384039a.tar.bz2
yuzu-03c26d3406335d6897535850e009d6d37384039a.tar.lz
yuzu-03c26d3406335d6897535850e009d6d37384039a.tar.xz
yuzu-03c26d3406335d6897535850e009d6d37384039a.tar.zst
yuzu-03c26d3406335d6897535850e009d6d37384039a.zip
Diffstat (limited to 'src/core/hle/service/audio/hwopus.cpp')
-rw-r--r--src/core/hle/service/audio/hwopus.cpp2
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)) {