FreeCalypso > hg > gsm-codec-lib
comparison efrtest/etsi-dec.c @ 97:e5ee684c6d29
efrtest/etsi-dec.c: off-by-1 error in frame bit packing
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 26 Nov 2022 21:06:48 +0000 |
parents | 9cf1355bc071 |
children | 8ed838709897 |
comparison
equal
deleted
inserted
replaced
96:9cf1355bc071 | 97:e5ee684c6d29 |
---|---|
136 if (input_bits[0] > 1) { | 136 if (input_bits[0] > 1) { |
137 fprintf(stderr, "error in %s frame #%u: BFI > 1\n", | 137 fprintf(stderr, "error in %s frame #%u: BFI > 1\n", |
138 argv[1], frame_no); | 138 argv[1], frame_no); |
139 exit(1); | 139 exit(1); |
140 } | 140 } |
141 bits2frame(input_bits, frame, argv[1], frame_no); | 141 bits2frame(input_bits + 1, frame, argv[1], frame_no); |
142 if (input_bits[245] > 2) { | 142 if (input_bits[245] > 2) { |
143 fprintf(stderr, "error in %s frame #%u: SID > 2\n", | 143 fprintf(stderr, "error in %s frame #%u: SID > 2\n", |
144 argv[1], frame_no); | 144 argv[1], frame_no); |
145 exit(1); | 145 exit(1); |
146 } | 146 } |