diff options
author | Gregory Maxwell <greg@xiph.org> | 2013-06-29 22:20:54 -0700 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2013-06-29 22:20:54 -0700 |
commit | a9daf9fec3b43573e164e0486b4efca4272934bf (patch) | |
tree | e3f649c654c9a9fe26947cc1b84dfb871d4cca43 /tests/test_opus_decode.c | |
parent | a0d096f18f13b94ca1d804dfd9e21b42b6bcd702 (diff) | |
download | opus-a9daf9fec3b43573e164e0486b4efca4272934bf.tar.gz |
Add a couple minor additional decoder tests.
Diffstat (limited to 'tests/test_opus_decode.c')
-rw-r--r-- | tests/test_opus_decode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_opus_decode.c b/tests/test_opus_decode.c index 58c477bb..44a0ae52 100644 --- a/tests/test_opus_decode.c +++ b/tests/test_opus_decode.c @@ -111,6 +111,10 @@ int test_decoder_code0(int no_fuzz) if(opus_decoder_ctl(dec[t], OPUS_GET_LAST_PACKET_DURATION(&dur))!=OPUS_OK)test_failed(); if(dur!=120/factor)test_failed(); + /*Test on a size which isn't a multiple of 2.5ms*/ + out_samples = opus_decode(dec[t], 0, 0, outbuf, 120/factor+2, fec); + if(out_samples!=OPUS_BAD_ARG)test_failed(); + /*Test null pointer input*/ out_samples = opus_decode(dec[t], 0, -1, outbuf, 120/factor, fec); if(out_samples!=120/factor)test_failed(); |