diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-11-17 22:35:15 -0500 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-11-17 22:35:15 -0500 |
commit | 6bc3e3cff7c81674d62455a5a55a83998e0dbcf6 (patch) | |
tree | 5ee4b65263592c8007c72f0bf98d692d0d1f2664 /tests | |
parent | 2632ef0396189e40c6415abad52ccbb774edf53f (diff) | |
download | libopus-6bc3e3cff7c81674d62455a5a55a83998e0dbcf6.tar.gz |
Fixes SILK surround calibration while fixing other MSVC warnings
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_opus_encode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_opus_encode.c b/tests/test_opus_encode.c index 0e544a44..6c1d0238 100644 --- a/tests/test_opus_encode.c +++ b/tests/test_opus_encode.c @@ -310,7 +310,7 @@ int run_test1(int no_fuzz) do { int pred,len,out_samples,frame_size,loss; if(opus_multistream_encoder_ctl(MSenc, OPUS_GET_PREDICTION_DISABLED(&pred))!=OPUS_OK)test_failed(); - if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_PREDICTION_DISABLED((fast_rand()&15)<(pred?11:4)))!=OPUS_OK)test_failed(); + if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_PREDICTION_DISABLED((int)(fast_rand()&15)<(pred?11:4)))!=OPUS_OK)test_failed(); frame_size=frame[j]; if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_COMPLEXITY((count>>2)%11))!=OPUS_OK)test_failed(); if(opus_multistream_encoder_ctl(MSenc, OPUS_SET_PACKET_LOSS_PERC((fast_rand()&15)&(fast_rand()%15)))!=OPUS_OK)test_failed(); |