decoder/mad: return from SynthAndSubmit() early
This commit is contained in:
parent
51abed9732
commit
fc18fd571c
@ -892,8 +892,8 @@ 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user