mirror of
				https://github.com/yuzu-emu/yuzu.git
				synced 2025-11-04 08:13:41 +00:00 
			
		
		
		
	Fixed incorrect hwopus assert
This commit is contained in:
		
							parent
							
								
									1069eced84
								
							
						
					
					
						commit
						03c26d3406
					
				@ -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)) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user