no need for aac protection - release

issue was (my bad) in LMS
This commit is contained in:
Philippe G
2020-12-23 16:23:19 -08:00
parent effd24ccd4
commit fd9158e7c1

View File

@@ -341,9 +341,7 @@ static decode_state helixaac_decode(void) {
bytes_total = _buf_used(streambuf); bytes_total = _buf_used(streambuf);
bytes_wrap = min(bytes_total, _buf_cont_read(streambuf)); bytes_wrap = min(bytes_total, _buf_cont_read(streambuf));
// Helixaac locks when not having enough samples (~7ms lost) if (stream.state <= DISCONNECT && !bytes_total) {
if (stream.state <= DISCONNECT && bytes_total < 128) {
LOG_WARN("decoder missed %zu bytes at the end", $bytes_total);
UNLOCK_S; UNLOCK_S;
return DECODE_COMPLETE; return DECODE_COMPLETE;
} }