Skip to content

Commit ba6b4d6

Browse files
committed
Cleanup
1 parent d39849d commit ba6b4d6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/AudioTools/AudioCodecs/MP4Parser.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,18 +214,17 @@ class MP4Parser {
214214
*/
215215
static void defaultCallback(const Box& box, void* ref) {
216216
char space[box.level * 2 + 1];
217+
char str_buffer[200];
217218
memset(space, ' ', box.level * 2);
218219
space[box.level * 2] = '\0'; // Null-terminate the string
219-
char str_buffer[64];
220220
snprintf(str_buffer, sizeof(str_buffer),
221-
"- #%u %s, Offset: %u, Size: %u, Data Size: %u", (unsigned)box.id,
221+
"%s- #%u %s, Offset: %u, Size: %u, Data Size: %u", space, (unsigned)box.id,
222222
box.type, (unsigned)box.offset, (unsigned)box.size,
223223
(unsigned)box.data_size);
224224
#ifdef ARDUINO
225-
Serial.print(space);
226225
Serial.println(str_buffer);
227226
#else
228-
printf("%s%s\n", space, str_buffer);
227+
printf("%s\n", str_buffer);
229228
#endif
230229
}
231230

0 commit comments

Comments
 (0)