mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 04:27:12 +03:00
codec tweak
This commit is contained in:
@@ -359,7 +359,9 @@ static decode_state helixaac_decode(void) {
|
||||
// adts stream - seek for header
|
||||
long n = AACFindSyncWord(streambuf->readp, bytes_wrap);
|
||||
|
||||
if (n > 0) {
|
||||
LOG_DEBUG("Sync search in %d bytes %d", bytes_wrap, n);
|
||||
|
||||
if (n >= 0) {
|
||||
u8_t *p = streambuf->readp + n;
|
||||
int bytes = bytes_wrap - n;
|
||||
|
||||
@@ -370,6 +372,8 @@ static decode_state helixaac_decode(void) {
|
||||
found = 1;
|
||||
}
|
||||
|
||||
HAAC(a, FlushCodec, a->hAac);
|
||||
|
||||
bytes_total -= n;
|
||||
bytes_wrap -= n;
|
||||
_buf_inc_readp(streambuf, n);
|
||||
|
||||
Reference in New Issue
Block a user