Skip to content
Snippets Groups Projects
Unverified Commit 6664d7b2 authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #1636 from ogniK5377/hwopus-bad-assert

Fixed incorrect hwopus assert
parents 1069eced 03c26d34
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment