mirror of
https://github.com/xiph/opus.git
synced 2025-05-28 14:19:13 +00:00
Testing tools improvements (no impact on draft)
This commit is contained in:
parent
10ebc02ecf
commit
e699c1989c
6 changed files with 44 additions and 11 deletions
|
@ -92,8 +92,8 @@ opus_int32 test_dec_api(void)
|
|||
#endif
|
||||
short sbuf[960*2];
|
||||
int c,err;
|
||||
int *nullptr;
|
||||
nullptr=0;
|
||||
int *nullvalue;
|
||||
nullvalue=0;
|
||||
|
||||
cfgs=0;
|
||||
/*First test invalid configurations which should fail*/
|
||||
|
@ -163,7 +163,7 @@ opus_int32 test_dec_api(void)
|
|||
cfgs++;
|
||||
|
||||
/*GET_PITCH has different execution paths depending on the previously decoded frame.*/
|
||||
err=opus_decoder_ctl(dec, OPUS_GET_PITCH(nullptr));
|
||||
err=opus_decoder_ctl(dec, OPUS_GET_PITCH(nullvalue));
|
||||
if(err!=OPUS_BAD_ARG)test_failed();
|
||||
cfgs++;
|
||||
VG_UNDEF(&i,sizeof(i));
|
||||
|
@ -297,8 +297,11 @@ opus_int32 test_msdec_api(void)
|
|||
#endif
|
||||
short sbuf[960*2];
|
||||
int a,b,c,err;
|
||||
int *nullptr;
|
||||
nullptr=0;
|
||||
#if 0
|
||||
/*Relevant test not enabled for multistream*/
|
||||
int *nullvalue;
|
||||
nullvalue=0;
|
||||
#endif
|
||||
|
||||
cfgs=0;
|
||||
/*First test invalid configurations which should fail*/
|
||||
|
@ -414,7 +417,7 @@ opus_int32 test_msdec_api(void)
|
|||
fprintf(stdout," OPUS_GET_BANDWIDTH ........................... OK.\n");
|
||||
cfgs++;
|
||||
/*GET_PITCH has different execution paths depending on the previously decoded frame.*/
|
||||
err=opus_multistream_decoder_ctl(dec, OPUS_GET_PITCH(nullptr));
|
||||
err=opus_multistream_decoder_ctl(dec, OPUS_GET_PITCH(nullvalue));
|
||||
if(err!=OPUS_BAD_ARG)test_failed();
|
||||
cfgs++;
|
||||
VG_UNDEF(&i,sizeof(i));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue