FreeCalypso > hg > gsm-net-reveng
comparison trau-decode/parse-main.c @ 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 | bf5c9fb431b8 |
children | d7674c80426c |
comparison
equal
deleted
inserted
replaced
9:0565aaa84b17 | 10:4d1732e4a143 |
---|---|
85 static void | 85 static void |
86 process_frame() | 86 process_frame() |
87 { | 87 { |
88 unsigned c1_5, c6_11; | 88 unsigned c1_5, c6_11; |
89 | 89 |
90 printf("Frame at 0x%x:\n", file_offset - 160); | 90 printf("Frame at 0x%x:\n", file_offset - 159); |
91 printf(" C1-C5: %u%u%u%u%u", frame_bits[17], frame_bits[18], | 91 printf(" C1-C5: %u%u%u%u%u", frame_bits[17], frame_bits[18], |
92 frame_bits[19], frame_bits[20], frame_bits[21]); | 92 frame_bits[19], frame_bits[20], frame_bits[21]); |
93 c1_5 = bits_to_num(frame_bits + 17, 5); | 93 c1_5 = bits_to_num(frame_bits + 17, 5); |
94 switch (c1_5) { | 94 switch (c1_5) { |
95 case 0x02: | 95 case 0x02: |