Skip to content
Snippets Groups Projects
Commit 71c04dc0 authored by Gregory Maxwell's avatar Gregory Maxwell
Browse files

Improve test_opus_encode's coverage of some high rate cases.

parent d17bc2e8
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment