decoder/mad: add assert()
This commit is contained in:
parent
3cacb56bb7
commit
b3897df682
@ -798,6 +798,8 @@ MadDecoder::UpdateTimerNextFrame() noexcept
|
|||||||
DecoderCommand
|
DecoderCommand
|
||||||
MadDecoder::SubmitPCM(size_t i, size_t pcm_length) noexcept
|
MadDecoder::SubmitPCM(size_t i, size_t pcm_length) noexcept
|
||||||
{
|
{
|
||||||
|
assert(i <= pcm_length);
|
||||||
|
|
||||||
size_t num_samples = pcm_length - i;
|
size_t num_samples = pcm_length - i;
|
||||||
|
|
||||||
mad_fixed_to_24_buffer(output_buffer, synth.pcm,
|
mad_fixed_to_24_buffer(output_buffer, synth.pcm,
|
||||||
|
Loading…
Reference in New Issue
Block a user