Commit fc18fd57 authored by Max Kellermann's avatar Max Kellermann

decoder/mad: return from SynthAndSubmit() early

parent 51abed97
...@@ -892,9 +892,9 @@ MadDecoder::SynthAndSubmit() noexcept ...@@ -892,9 +892,9 @@ MadDecoder::SynthAndSubmit() noexcept
if (drop_end_samples && if (drop_end_samples &&
current_frame == max_frames - drop_end_frames - 1) { current_frame == max_frames - drop_end_frames - 1) {
if (drop_end_samples >= pcm_length) if (drop_end_samples >= pcm_length)
pcm_length = 0; return DecoderCommand::STOP;
else
pcm_length -= drop_end_samples; pcm_length -= drop_end_samples;
} }
auto cmd = SubmitPCM(i, pcm_length); auto cmd = SubmitPCM(i, pcm_length);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment