From 5fd09e2a34ff619d12344f60e3f3c339ae68c5d1 Mon Sep 17 00:00:00 2001 From: philippe44 Date: Fri, 2 Jun 2023 16:19:03 +0200 Subject: [PATCH] don't parse dmap unknown fields --- components/raop/dmap_parser.c | 3 ++- components/squeezelite/output_i2s.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/components/raop/dmap_parser.c b/components/raop/dmap_parser.c index d3d3b85d..67e43e8b 100644 --- a/components/raop/dmap_parser.c +++ b/components/raop/dmap_parser.c @@ -424,7 +424,7 @@ static int dmap_parse_internal(const dmap_settings *settings, const char *buf, s /* Make a best guess of the type */ field_type = DMAP_UNKNOWN; field_name = code; - +#ifdef DMAP_FULL if (field_len >= 8) { /* Look for a four char code followed by a length within the current field */ if (isalpha(p[0] & 0xff) && @@ -448,6 +448,7 @@ static int dmap_parse_internal(const dmap_settings *settings, const char *buf, s field_type = is_string ? DMAP_STR : DMAP_UINT; } +#endif } switch (field_type) { diff --git a/components/squeezelite/output_i2s.c b/components/squeezelite/output_i2s.c index 4fa9df7f..6c1dd6c8 100644 --- a/components/squeezelite/output_i2s.c +++ b/components/squeezelite/output_i2s.c @@ -283,8 +283,8 @@ void output_init_i2s(log_level level, char *device, unsigned output_buf_size, ch i2s_config.dma_buf_count = DMA_BUF_COUNT * 2; /* In DMA, we have room for (LEN * COUNT) frames of 32 bits samples that - we push at sample_rate * 2. Each of these peuso-frames is a single true - audio frame. So the real depth is true frames is (LEN * COUNT / 2) + we push at sample_rate * 2. Each of these pseudo-frames is a single true + audio frame. So the real depth in true frames is (LEN * COUNT / 2) */ dma_buf_frames = DMA_BUF_COUNT * DMA_BUF_LEN / 2;