diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-12-19 16:32:18 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-12-19 17:38:40 +0100 |
commit | c2228b7674a94a0d8a8f3d688f84c6adc95108f1 (patch) | |
tree | ce84615fdd57128aa6fe78a3642ccd4cdfad75ac | |
parent | 8997fe8251ea9bc6aaaa32f081efa87b562e94dc (diff) |
tests/amr: Add test case for unused FT=14
FT=15 will be accepted in follow-up patch, so keep a tests checking the
invalid FT code path.
Change-Id: I5872921f5d4a909261e770ddecf048329200724b
-rw-r--r-- | tests/amr/amr_test.c | 3 | ||||
-rw-r--r-- | tests/amr/amr_test.ok | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/tests/amr/amr_test.c b/tests/amr/amr_test.c index d332eaa..593723c 100644 --- a/tests/amr/amr_test.c +++ b/tests/amr/amr_test.c @@ -48,7 +48,8 @@ char *oa_amr_samples[] = { "0004f89d67f1160935bde1996840", "0004633cc7f0630439ffe0000000", "0004eb81fc0758973b9edc782550", - "a078ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00fc", /* sample with invalid FT, will be detected as bandwith-efficient */ + "a070ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00fc", /* sample with invalid FT=14, will be detected as bandwith-efficient */ + "a078ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00fc", /* sample with invalid FT=15, will be detected as bandwith-efficient */ "END", }; diff --git a/tests/amr/amr_test.ok b/tests/amr/amr_test.ok index 02e36d9..8aee2d3 100644 --- a/tests/amr/amr_test.ok +++ b/tests/amr/amr_test.ok @@ -157,6 +157,13 @@ Sample No.: 21 rc: 14 Sample No.: 22 + octet aligned: a070ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00fc + 101000000111000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111100 + bw-efficient: + (no data) + rc: -1 + +Sample No.: 23 octet aligned: a078ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00ff00fc 101000000111100011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111111000000001111111100000000111111110000000011111100 bw-efficient: @@ -310,6 +317,7 @@ Sample No.: 19... AMR mode: 0, OA: 14 bytes, BE: 14 bytes, OA: 14 bytes Sample No.: 20... AMR mode: 0, OA: 14 bytes, BE: 14 bytes, OA: 14 bytes Sample No.: 21... AMR mode: 0, OA: 14 bytes, BE: 14 bytes, OA: 14 bytes Sample No.: 22... skipping a sample with a wrong FT +Sample No.: 23... skipping a sample with a wrong FT Testing conversion from IuUP to bw-efficient and inverse: @@ -342,6 +350,7 @@ Sample No.: 19 ==>octet aligned Sample No.: 20 ==>octet aligned Sample No.: 21 ==>octet aligned Sample No.: 22 ==>bandwith efficient +Sample No.: 23 ==>bandwith efficient Sample No.: 0 ==>bandwith efficient Sample No.: 1 ==>bandwith efficient Sample No.: 2 ==>bandwith efficient |