summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGregory Maxwell <greg@xiph.org>2011-10-27 18:07:40 -0400
committerGregory Maxwell <greg@xiph.org>2011-10-27 18:07:40 -0400
commit71c04dc00c40db580357f6b0bfcd15cb8c88d504 (patch)
treea5a4880dc290312c31a7ec5c7cb5feeca520e91f /tests
parentd17bc2e8cb2e5e43a1bbd1a0d17ae49ce7e3c365 (diff)
downloadopus-71c04dc00c40db580357f6b0bfcd15cb8c88d504.tar.gz
Improve test_opus_encode's coverage of some high rate cases.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_opus_encode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_opus_encode.c b/tests/test_opus_encode.c
index 7bdb89da..1e031e77 100644
--- a/tests/test_opus_encode.c
+++ b/tests/test_opus_encode.c
@@ -185,12 +185,12 @@ int run_test1(void)
if(opus_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(rc==1))!=OPUS_OK)test_failed();
if(opus_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(rc==1))!=OPUS_OK)test_failed();
if(opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(rc==0))!=OPUS_OK)test_failed();
- for(j=0;j<12;j++)
+ for(j=0;j<13;j++)
{
int rate;
- int modes[12]={0,0,0,1,1,1,1,2,2,2,2,2};
- int rates[12]={6000,12000,48000,16000,32000,48000,64000,24000,32000,48000,64000,128000};
- int frame[12]={960*2,960,480,960,960,960,480,960*3,960,480,240,120};
+ int modes[13]={0,0,0,1,1,1,1,2,2,2,2,2,2};
+ int rates[13]={6000,12000,48000,16000,32000,48000,64000,512000,13000,24000,48000,64000,96000};
+ int frame[13]={960*2,960,480,960,960,960,480,960*3,960*3,960,480,240,120};
if(opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(rc==0))!=OPUS_OK)test_failed();
if(opus_encoder_ctl(enc, OPUS_SET_FORCE_MODE(MODE_SILK_ONLY+modes[j]))!=OPUS_OK)test_failed();
rate=rates[j]+fast_rand()%rates[j];