aac channels wrong calculation - release

This commit is contained in:
Philippe G
2020-06-16 18:16:33 -07:00
parent 3e39300759
commit b4c17b02a0
2 changed files with 2 additions and 2 deletions

View File

@@ -204,7 +204,7 @@ static decode_state pcm_decode(void) {
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_S;
return DECODE_COMPLETE;