diff options
Diffstat (limited to 'tests/test_opus_encode.c')
-rw-r--r-- | tests/test_opus_encode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_opus_encode.c b/tests/test_opus_encode.c index 61e0dec1..b80def3f 100644 --- a/tests/test_opus_encode.c +++ b/tests/test_opus_encode.c @@ -269,7 +269,7 @@ int run_test1(int no_fuzz) if(opus_decoder_ctl(dec, OPUS_GET_FINAL_RANGE(&dec_final_range))!=OPUS_OK)test_failed(); if(enc_final_range!=dec_final_range)test_failed(); /*LBRR decode*/ - out_samples = opus_decode(dec_err[0], packet, len, out2buf, MAX_FRAME_SAMP, (fast_rand()&3)!=0); + out_samples = opus_decode(dec_err[0], packet, len, out2buf, frame_size, (fast_rand()&3)!=0); if(out_samples!=frame_size)test_failed(); out_samples = opus_decode(dec_err[1], packet, (fast_rand()&3)==0?0:len, out2buf, MAX_FRAME_SAMP, (fast_rand()&7)!=0); if(out_samples<120)test_failed(); @@ -317,8 +317,8 @@ int run_test1(int no_fuzz) if(enc_final_range!=dec_final_range)test_failed(); /*LBRR decode*/ loss=(fast_rand()&63)==0; - out_samples = opus_multistream_decode(MSdec_err, packet, loss?0:len, out2buf, MAX_FRAME_SAMP, (fast_rand()&3)!=0); - if(loss?out_samples<120:out_samples!=(frame_size*6))test_failed(); + out_samples = opus_multistream_decode(MSdec_err, packet, loss?0:len, out2buf, frame_size*6, (fast_rand()&3)!=0); + if(out_samples!=(frame_size*6))test_failed(); i+=frame_size; count++; }while(i<(SSAMPLES/12-MAX_FRAME_SAMP)); |