mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 04:27:12 +03:00
aac incorrect synchro at the beginnign of a block locks the decoder
This commit is contained in:
@@ -370,7 +370,7 @@ static decode_state helixaac_decode(void) {
|
|||||||
channels = info.nChans;
|
channels = info.nChans;
|
||||||
samplerate = info.sampRateOut;
|
samplerate = info.sampRateOut;
|
||||||
found = 1;
|
found = 1;
|
||||||
}
|
} else if (n == 0) n++;
|
||||||
|
|
||||||
HAAC(a, FlushCodec, a->hAac);
|
HAAC(a, FlushCodec, a->hAac);
|
||||||
|
|
||||||
@@ -412,6 +412,7 @@ static decode_state helixaac_decode(void) {
|
|||||||
|
|
||||||
// not finished header parsing come back next time
|
// not finished header parsing come back next time
|
||||||
UNLOCK_S;
|
UNLOCK_S;
|
||||||
|
LOG_INFO("header not found yet");
|
||||||
return DECODE_RUNNING;
|
return DECODE_RUNNING;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -280,9 +280,8 @@ static void *output_thread_i2s() {
|
|||||||
SET_MIN_MAX( TIME_MEASUREMENT_GET(timer_start),i2s_time);
|
SET_MIN_MAX( TIME_MEASUREMENT_GET(timer_start),i2s_time);
|
||||||
|
|
||||||
frames = 0;
|
frames = 0;
|
||||||
} else {
|
|
||||||
LOG_WARN("no frame returned %d", output.state);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user