mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-02-01 15:21:09 +03:00
pcm remaining bytes guardrail
This commit is contained in:
@@ -204,7 +204,7 @@ static decode_state pcm_decode(void) {
|
|||||||
out = process.max_in_frames;
|
out = process.max_in_frames;
|
||||||
);
|
);
|
||||||
|
|
||||||
if ((stream.state <= DISCONNECT && bytes == 0) || (limit && audio_left == 0)) {
|
if ((stream.state <= DISCONNECT && bytes < bytes_per_frame) || (limit && audio_left == 0)) {
|
||||||
UNLOCK_O_direct;
|
UNLOCK_O_direct;
|
||||||
UNLOCK_S;
|
UNLOCK_S;
|
||||||
return DECODE_COMPLETE;
|
return DECODE_COMPLETE;
|
||||||
|
|||||||
Reference in New Issue
Block a user