FreeCalypso > hg > gsm-codec-lib
annotate miscutil/Makefile @ 585:3c6bf0d26ee7 default tip
TW-TS-005 reader: fix maximum line length bug
TW-TS-005 section 4.1 states:
The maximum allowed length of each line is 80 characters, not
including the OS-specific newline encoding.
The implementation of this line length limit in the TW-TS-005 hex file
reader function in the present suite was wrong, such that lines of
the full maximum length could not be read. Fix it.
Note that this bug affects comment lines too, not just actual RTP
payloads. Neither Annex A nor Annex B features an RTP payload format
that goes to the maximum of 40 bytes, but if a comment line goes to
the maximum allowed length of 80 characters not including the
terminating newline, the bug will be triggered, necessitating
the present fix.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 25 Feb 2025 07:49:28 +0000 |
parents | ddb2b00d582b |
children |
rev | line source |
---|---|
520
785b302992f0
miscutil: new program gsmx-to-tw5a
Mychaela Falconia <falcon@freecalypso.org>
parents:
469
diff
changeset
|
1 PROGS= amrts-pcm8-compact gsmrec-dump gsmx-to-tw5a pcm16-check13 pcm16-raw2wav\ |
524
ddb2b00d582b
miscutil: new program tw5a-to-gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
2 pcm16-to-alaw pcm16-to-ulaw pcm16-wav2raw pcm8-to-pcm16 tw5a-dump \ |
ddb2b00d582b
miscutil: new program tw5a-to-gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
3 tw5a-to-gsmx |
281
3816ba89a5a0
gsmrec-dump: use libgsmfr2 instead of old libgsm
Mychaela Falconia <falcon@freecalypso.org>
parents:
232
diff
changeset
|
4 LIBEFR= ../libgsmefr/libgsmefr.a ../libgsmfr2/libgsmfr2.a |
14
69ed7af28473
gsmfr-encode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
12
diff
changeset
|
5 LIBTEST=../libtest/libtest.a |
453
19f1aa01ea10
new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents:
281
diff
changeset
|
6 |
19f1aa01ea10
new approach to config & build for ThemWi software
Mychaela Falconia <falcon@freecalypso.org>
parents:
281
diff
changeset
|
7 include ../config.defs |
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 |
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 all: ${PROGS} |
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 |
469
7c50864deaff
amrts-pcm8-compact program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
460
diff
changeset
|
11 amrts-pcm8-compact: amrts-pcm8-compact.c |
7c50864deaff
amrts-pcm8-compact program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
460
diff
changeset
|
12 ${CC} ${CFLAGS} -o $@ $@.c |
7c50864deaff
amrts-pcm8-compact program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
460
diff
changeset
|
13 |
46
edd2e20e7090
gsmrec-dump: decode EFR frames
Mychaela Falconia <falcon@freecalypso.org>
parents:
23
diff
changeset
|
14 gsmrec-dump: gsmrec-dump.o ${LIBTEST} ${LIBEFR} |
281
3816ba89a5a0
gsmrec-dump: use libgsmfr2 instead of old libgsm
Mychaela Falconia <falcon@freecalypso.org>
parents:
232
diff
changeset
|
15 ${CC} ${CFLAGS} -o $@ gsmrec-dump.o ${LIBTEST} ${LIBEFR} |
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 |
520
785b302992f0
miscutil: new program gsmx-to-tw5a
Mychaela Falconia <falcon@freecalypso.org>
parents:
469
diff
changeset
|
17 gsmx-to-tw5a: gsmx-to-tw5a.o ${LIBTEST} |
785b302992f0
miscutil: new program gsmx-to-tw5a
Mychaela Falconia <falcon@freecalypso.org>
parents:
469
diff
changeset
|
18 ${CC} ${CFLAGS} -o $@ gsmx-to-tw5a.o ${LIBTEST} |
785b302992f0
miscutil: new program gsmx-to-tw5a
Mychaela Falconia <falcon@freecalypso.org>
parents:
469
diff
changeset
|
19 |
221
6555dae764b3
miscutil: new program pcm16-check13
Mychaela Falconia <falcon@freecalypso.org>
parents:
220
diff
changeset
|
20 pcm16-check13: pcm16-check13.c |
6555dae764b3
miscutil: new program pcm16-check13
Mychaela Falconia <falcon@freecalypso.org>
parents:
220
diff
changeset
|
21 ${CC} ${CFLAGS} -o $@ $@.c |
6555dae764b3
miscutil: new program pcm16-check13
Mychaela Falconia <falcon@freecalypso.org>
parents:
220
diff
changeset
|
22 |
141
c1dc094f0821
pcm16-raw2wav utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
103
diff
changeset
|
23 pcm16-raw2wav: raw2wav.o ${LIBTEST} |
c1dc094f0821
pcm16-raw2wav utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
103
diff
changeset
|
24 ${CC} ${CFLAGS} -o $@ raw2wav.o ${LIBTEST} |
c1dc094f0821
pcm16-raw2wav utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
103
diff
changeset
|
25 |
219
dc52c3857bf7
miscutil: new program pcm16-to-alaw
Mychaela Falconia <falcon@freecalypso.org>
parents:
184
diff
changeset
|
26 pcm16-to-alaw: pcm16-to-alaw.c |
dc52c3857bf7
miscutil: new program pcm16-to-alaw
Mychaela Falconia <falcon@freecalypso.org>
parents:
184
diff
changeset
|
27 ${CC} ${CFLAGS} -o $@ $@.c |
dc52c3857bf7
miscutil: new program pcm16-to-alaw
Mychaela Falconia <falcon@freecalypso.org>
parents:
184
diff
changeset
|
28 |
220
c4c45148cde1
miscutil: new program pcm16-to-ulaw
Mychaela Falconia <falcon@freecalypso.org>
parents:
219
diff
changeset
|
29 pcm16-to-ulaw: pcm16-to-ulaw.c |
c4c45148cde1
miscutil: new program pcm16-to-ulaw
Mychaela Falconia <falcon@freecalypso.org>
parents:
219
diff
changeset
|
30 ${CC} ${CFLAGS} -o $@ $@.c |
c4c45148cde1
miscutil: new program pcm16-to-ulaw
Mychaela Falconia <falcon@freecalypso.org>
parents:
219
diff
changeset
|
31 |
142
578fdedf4327
pcm16-wav2raw utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
141
diff
changeset
|
32 pcm16-wav2raw: wav2raw.o ${LIBTEST} |
578fdedf4327
pcm16-wav2raw utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
141
diff
changeset
|
33 ${CC} ${CFLAGS} -o $@ wav2raw.o ${LIBTEST} |
578fdedf4327
pcm16-wav2raw utility written
Mychaela Falconia <falcon@freecalypso.org>
parents:
141
diff
changeset
|
34 |
232
8710c94df334
miscutil: new program pcm8-to-pcm16
Mychaela Falconia <falcon@freecalypso.org>
parents:
221
diff
changeset
|
35 pcm8-to-pcm16: pcm8-to-pcm16.c |
8710c94df334
miscutil: new program pcm8-to-pcm16
Mychaela Falconia <falcon@freecalypso.org>
parents:
221
diff
changeset
|
36 ${CC} ${CFLAGS} -o $@ $@.c |
8710c94df334
miscutil: new program pcm8-to-pcm16
Mychaela Falconia <falcon@freecalypso.org>
parents:
221
diff
changeset
|
37 |
523
86d4ec69b36c
miscutil: new program tw5a-dump
Mychaela Falconia <falcon@freecalypso.org>
parents:
520
diff
changeset
|
38 tw5a-dump: tw5a-dump.o ${LIBTEST} ${LIBEFR} |
86d4ec69b36c
miscutil: new program tw5a-dump
Mychaela Falconia <falcon@freecalypso.org>
parents:
520
diff
changeset
|
39 ${CC} ${CFLAGS} -o $@ tw5a-dump.o ${LIBTEST} ${LIBEFR} |
86d4ec69b36c
miscutil: new program tw5a-dump
Mychaela Falconia <falcon@freecalypso.org>
parents:
520
diff
changeset
|
40 |
524
ddb2b00d582b
miscutil: new program tw5a-to-gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
41 tw5a-to-gsmx: tw5a-to-gsmx.o ${LIBTEST} |
ddb2b00d582b
miscutil: new program tw5a-to-gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
42 ${CC} ${CFLAGS} -o $@ tw5a-to-gsmx.o ${LIBTEST} |
ddb2b00d582b
miscutil: new program tw5a-to-gsmx
Mychaela Falconia <falcon@freecalypso.org>
parents:
523
diff
changeset
|
43 |
17
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
44 install: |
460
cb1d1ea7f2c5
new build system: accept more directory options
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
45 mkdir -p ${DESTDIR}${bindir} |
cb1d1ea7f2c5
new build system: accept more directory options
Mychaela Falconia <falcon@freecalypso.org>
parents:
453
diff
changeset
|
46 install -c ${PROGS} ${DESTDIR}${bindir} |
17
68a7e86c9868
frtest/Makefile: add install
Mychaela Falconia <falcon@freecalypso.org>
parents:
14
diff
changeset
|
47 |
12
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
48 clean: |
f88817a233fb
gsmfr-decode test program written
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
49 rm -f *.o *.out ${PROGS} |