mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2026-05-02 03:19:29 +01:00
chore: checkpoint current IDF 5.5 remediation state
This commit is contained in:
@@ -260,8 +260,10 @@ static int read_mp4_header(void) {
|
||||
}
|
||||
if (!memcmp(ptr + 4, "data", 4) && remain > 16 + 48) {
|
||||
// data is stored as hex strings: 0 start end samples
|
||||
u32_t b, c; u64_t d;
|
||||
if (sscanf((const char *)(ptr + 16), "%x %x %x " FMT_x64, &b, &b, &c, &d) == 4) {
|
||||
unsigned b_tmp, c_tmp;
|
||||
u64_t d;
|
||||
if (sscanf((const char *)(ptr + 16), "%x %x %x " FMT_x64, &b_tmp, &b_tmp, &c_tmp, &d) == 4) {
|
||||
u32_t b = b_tmp, c = c_tmp;
|
||||
LOG_DEBUG("iTunSMPB start: %u end: %u samples: " FMT_u64, b, c, d);
|
||||
if (l->sttssamples && l->sttssamples < b + c + d) {
|
||||
LOG_DEBUG("reducing samples as stts count is less");
|
||||
@@ -317,7 +319,8 @@ static decode_state alac_decode(void) {
|
||||
size_t bytes;
|
||||
bool endstream;
|
||||
u8_t *iptr;
|
||||
u32_t frames, block_size;
|
||||
unsigned frames;
|
||||
u32_t block_size;
|
||||
|
||||
LOCK_S;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user