aboutsummaryrefslogtreecommitdiffstats
path: root/tests/amr/amr_test.c
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2020-05-25 15:39:35 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2020-05-25 17:05:04 +0200
commitb61eaaccc37c8e7842a86bc06dcd0c0dd444e576 (patch)
tree194384463e602d62bb9143b6eae753ae767160e5 /tests/amr/amr_test.c
parent51591bbc3f6264404d02f23fc7caaa4e1f9a090e (diff)
amr: fix off-by-one in osmo_amr_bwe_to_oa()
The for loop in osmo_amr_bwe_to_oa, that converts the body part of the AMR payload runs one byte too far. This may cause that some of the padding bits in the end are not set to zero. The loop is designed to convert n-1 bytes and the nth byte is done separately at the end. Change-Id: I91e755b83aaac722079879c026d913cc446812d1
Diffstat (limited to 'tests/amr/amr_test.c')
-rw-r--r--tests/amr/amr_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/amr/amr_test.c b/tests/amr/amr_test.c
index 2f41fe9..fabf948 100644
--- a/tests/amr/amr_test.c
+++ b/tests/amr/amr_test.c
@@ -46,7 +46,7 @@ char *oa_amr_samples[] = {
"100c1fb967f7f1fdf547bf2e61c060",
"0004f89d67f1160935bde1996840",
"0004633cc7f0630439ffe0000000",
- "0004eb81fc0758973b9edc782552",
+ "0004eb81fc0758973b9edc782550",
"a078ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00fc", /* sample with invalid FT */
"END",
};