test_opus_api: Fix valgrind expectations broken by last commit.
authorGregory Maxwell <greg@xiph.org>
Wed, 11 Jul 2012 06:18:44 +0000 (02:18 -0400)
committerGregory Maxwell <greg@xiph.org>
Wed, 11 Jul 2012 06:18:44 +0000 (02:18 -0400)
The last commit changed some of the multistream tests to use a
dual-mono setup instead of a single-stereo setup. Some of the
accompanying explicit valgrind checks were still setup to
look for stereo streams.

tests/test_opus_api.c

index 641f6ea..66efa1b 100644 (file)
@@ -422,13 +422,14 @@ opus_int32 test_msdec_api(void)
    cfgs++;
    err=opus_multistream_decoder_ctl(dec, OPUS_MULTISTREAM_GET_DECODER_STATE(1,&streamdec));
    if(err!=OPUS_OK||streamdec==NULL)test_failed();
+   VG_CHECK(streamdec,opus_decoder_get_size(1));
    cfgs++;
    err=opus_multistream_decoder_ctl(dec, OPUS_MULTISTREAM_GET_DECODER_STATE(2,&streamdec));
    if(err!=OPUS_BAD_ARG)test_failed();
    cfgs++;
    err=opus_multistream_decoder_ctl(dec, OPUS_MULTISTREAM_GET_DECODER_STATE(0,&streamdec));
    if(err!=OPUS_OK||streamdec==NULL)test_failed();
-   VG_CHECK(streamdec,opus_decoder_get_size(2));
+   VG_CHECK(streamdec,opus_decoder_get_size(1));
    fprintf(stdout,"    OPUS_MULTISTREAM_GET_DECODER_STATE ........... OK.\n");
    cfgs++;