changeset 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 18866c0354ef
files efrtest/etsi-dec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/efrtest/etsi-dec.c	Sat Nov 26 19:55:59 2022 +0000
+++ b/efrtest/etsi-dec.c	Sat Nov 26 21:06:48 2022 +0000
@@ -138,7 +138,7 @@
 				argv[1], frame_no);
 			exit(1);
 		}
-		bits2frame(input_bits, frame, argv[1], frame_no);
+		bits2frame(input_bits + 1, frame, argv[1], frame_no);
 		if (input_bits[245] > 2) {
 			fprintf(stderr, "error in %s frame #%u: SID > 2\n",
 				argv[1], frame_no);