summaryrefslogtreecommitdiff
path: root/tests/test_opus_api.c
diff options
context:
space:
mode:
authorMark Harris <mark.hsj@gmail.com>2018-07-21 21:10:17 -0700
committerMark Harris <mark.hsj@gmail.com>2018-07-21 21:36:34 -0700
commit1827db6a601e02729475c4618500f49f8b0cbefa (patch)
treef6cd3ed929a12b117e9766b314de108e95a00ad5 /tests/test_opus_api.c
parent01b035f8ba4f48e9e1ad9f9407f77ce9a7e4aa44 (diff)
downloadopus-1827db6a601e02729475c4618500f49f8b0cbefa.tar.gz
Validate multistream/projection decoder frame_size
Diffstat (limited to 'tests/test_opus_api.c')
-rw-r--r--tests/test_opus_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_opus_api.c b/tests/test_opus_api.c
index 43c6d143..fb385c63 100644
--- a/tests/test_opus_api.c
+++ b/tests/test_opus_api.c
@@ -653,6 +653,8 @@ opus_int32 test_msdec_api(void)
packet[1]=packet[2]=0;
if(opus_multistream_decode(dec, packet, -1, sbuf, 960, 0)!=OPUS_BAD_ARG){printf("%d\n",opus_multistream_decode(dec, packet, -1, sbuf, 960, 0));test_failed();}
cfgs++;
+ if(opus_multistream_decode(dec, packet, 3, sbuf, -960, 0)!=OPUS_BAD_ARG)test_failed();
+ cfgs++;
if(opus_multistream_decode(dec, packet, 3, sbuf, 60, 0)!=OPUS_BUFFER_TOO_SMALL)test_failed();
cfgs++;
if(opus_multistream_decode(dec, packet, 3, sbuf, 480, 0)!=OPUS_BUFFER_TOO_SMALL)test_failed();