mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-21 12:17:59 +00:00
opus: fix stereo stream count check in multistream decoder object
This commit is contained in:
parent
b82d0ab954
commit
4ecf02c792
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ bool IsValidChannelCount(u32 channel_count) {
|
|||
}
|
||||
|
||||
bool IsValidStreamCounts(u32 total_stream_count, u32 stereo_stream_count) {
|
||||
return total_stream_count > 0 && stereo_stream_count > 0 &&
|
||||
return total_stream_count > 0 && static_cast<s32>(stereo_stream_count) >= 0 &&
|
||||
stereo_stream_count <= total_stream_count && IsValidChannelCount(total_stream_count);
|
||||
}
|
||||
} // namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue