changeset 10:4d1732e4a143

trau-parse: frame offsets were reported off by one byte
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 24 May 2024 19:59:06 +0000
parents 0565aaa84b17
children cdfeb81350f5
files trau-decode/parse-main.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/trau-decode/parse-main.c	Fri May 24 19:44:14 2024 +0000
+++ b/trau-decode/parse-main.c	Fri May 24 19:59:06 2024 +0000
@@ -87,7 +87,7 @@
 {
 	unsigned c1_5, c6_11;
 
-	printf("Frame at 0x%x:\n", file_offset - 160);
+	printf("Frame at 0x%x:\n", file_offset - 159);
 	printf("  C1-C5: %u%u%u%u%u", frame_bits[17], frame_bits[18],
 		frame_bits[19], frame_bits[20], frame_bits[21]);
 	c1_5 = bits_to_num(frame_bits + 17, 5);