Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMark Harris <mark.hsj@gmail.com>2018-07-22 07:10:17 +0300
committerMark Harris <mark.hsj@gmail.com>2018-07-22 07:36:34 +0300
commit1827db6a601e02729475c4618500f49f8b0cbefa (patch)
treef6cd3ed929a12b117e9766b314de108e95a00ad5 /tests
parent01b035f8ba4f48e9e1ad9f9407f77ce9a7e4aa44 (diff)
Validate multistream/projection decoder frame_size
Diffstat (limited to 'tests')
-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();