diff options
| author | 2023-11-17 08:25:31 -0500 | |
|---|---|---|
| committer | 2023-11-17 08:26:22 -0500 | |
| commit | de594995da3c041a5ce1e2240412558d62c07013 (patch) | |
| tree | 32b4cc8082d700672a18d0b302bd2afd7fea9b8b /src/audio_core/adsp | |
| parent | Merge pull request #12055 from german77/activate (diff) | |
| download | yuzu-de594995da3c041a5ce1e2240412558d62c07013.tar.gz yuzu-de594995da3c041a5ce1e2240412558d62c07013.tar.xz yuzu-de594995da3c041a5ce1e2240412558d62c07013.zip | |
opus: fix stereo stream count check in multistream decoder object
Diffstat (limited to 'src/audio_core/adsp')
| -rw-r--r-- | src/audio_core/adsp/apps/opus/opus_multistream_decode_object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_core/adsp/apps/opus/opus_multistream_decode_object.cpp b/src/audio_core/adsp/apps/opus/opus_multistream_decode_object.cpp index 7f1ed0450..05cf3975d 100644 --- a/src/audio_core/adsp/apps/opus/opus_multistream_decode_object.cpp +++ b/src/audio_core/adsp/apps/opus/opus_multistream_decode_object.cpp | |||
| @@ -12,7 +12,7 @@ bool IsValidChannelCount(u32 channel_count) { | |||
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | bool IsValidStreamCounts(u32 total_stream_count, u32 stereo_stream_count) { | 14 | bool IsValidStreamCounts(u32 total_stream_count, u32 stereo_stream_count) { |
| 15 | return total_stream_count > 0 && stereo_stream_count > 0 && | 15 | return total_stream_count > 0 && static_cast<s32>(stereo_stream_count) >= 0 && |
| 16 | stereo_stream_count <= total_stream_count && IsValidChannelCount(total_stream_count); | 16 | stereo_stream_count <= total_stream_count && IsValidChannelCount(total_stream_count); |
| 17 | } | 17 | } |
| 18 | } // namespace | 18 | } // namespace |