diff options
author | Jean-Marc Valin <jmvalin@amazon.com> | 2023-05-17 20:41:44 +0300 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@amazon.com> | 2023-06-16 20:01:37 +0300 |
commit | 3c74ef1d73f807f4f293fbef900bbbf1a9cf44a8 (patch) | |
tree | 854f98fb85ea7b9ab2ad50ffa5367f346385c329 /tests | |
parent | bb225aa2a8c25924513d9fb7e630220ab31f90e1 (diff) |
Increase state size limit for API test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_opus_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_opus_api.c b/tests/test_opus_api.c index 0e7ed2cc..b6d67572 100644 --- a/tests/test_opus_api.c +++ b/tests/test_opus_api.c @@ -103,7 +103,7 @@ opus_int32 test_dec_api(void) for(c=0;c<4;c++) { i=opus_decoder_get_size(c); - if(((c==1||c==2)&&(i<=2048||i>1<<16))||((c!=1&&c!=2)&&i!=0))test_failed(); + if(((c==1||c==2)&&(i<=2048||i>1<<17))||((c!=1&&c!=2)&&i!=0))test_failed(); fprintf(stdout," opus_decoder_get_size(%d)=%d ...............%s OK.\n",c,i,i>0?"":"...."); cfgs++; } @@ -367,7 +367,7 @@ opus_int32 test_msdec_api(void) for(b=-1;b<4;b++) { i=opus_multistream_decoder_get_size(a,b); - if(((a>0&&b<=a&&b>=0)&&(i<=2048||i>((1<<16)*a)))||((a<1||b>a||b<0)&&i!=0))test_failed(); + if(((a>0&&b<=a&&b>=0)&&(i<=2048||i>((1<<17)*a)))||((a<1||b>a||b<0)&&i!=0))test_failed(); fprintf(stdout," opus_multistream_decoder_get_size(%2d,%2d)=%d %sOK.\n",a,b,i,i>0?"":"... "); cfgs++; } @@ -1081,7 +1081,7 @@ opus_int32 test_enc_api(void) for(c=0;c<4;c++) { i=opus_encoder_get_size(c); - if(((c==1||c==2)&&(i<=2048||i>1<<17))||((c!=1&&c!=2)&&i!=0))test_failed(); + if(((c==1||c==2)&&(i<=2048||i>1<<18))||((c!=1&&c!=2)&&i!=0))test_failed(); fprintf(stdout," opus_encoder_get_size(%d)=%d ...............%s OK.\n",c,i,i>0?"":"...."); cfgs++; } |