diff options
author | tlegrand@chromium.org <tlegrand@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-23 09:13:50 +0000 |
---|---|---|
committer | tlegrand@chromium.org <tlegrand@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-23 09:13:50 +0000 |
commit | e3ea049fcaee2247e45f0ce793d4313babb4ef69 (patch) | |
tree | 4449fa158c45dea4175443f44c3dfc1264bd6dfb /tests/test_opus_decode.c | |
parent | 6b6bee25314cfac02cc555cddedb9680c63a26d6 (diff) | |
download | src-e3ea049fcaee2247e45f0ce793d4313babb4ef69.tar.gz |
Updating Opus to a pre-release of 1.1
This CL updates Opus to a pre-release of the coming Opus 1.1 version. The code is extracted from http://git.xiph.org/?p=opus.git, commit aee4d8057632ea0cfc1d55d88acf8466b47b7b4b from October 1st 2013.
This version includes both algorithmic and platform optimizations, as well an important fix for a denorm problem when the input goes silent after active audio. The problem causes high CPU usage.
Review URL: https://codereview.chromium.org/28553003
git-svn-id: svn://svn.chromium.org/chrome/trunk/deps/third_party/opus@230378 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tests/test_opus_decode.c')
-rw-r--r-- | tests/test_opus_decode.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/test_opus_decode.c b/tests/test_opus_decode.c index e2c04c2..44a0ae5 100644 --- a/tests/test_opus_decode.c +++ b/tests/test_opus_decode.c @@ -111,6 +111,10 @@ int test_decoder_code0(int no_fuzz) if(opus_decoder_ctl(dec[t], OPUS_GET_LAST_PACKET_DURATION(&dur))!=OPUS_OK)test_failed(); if(dur!=120/factor)test_failed(); + /*Test on a size which isn't a multiple of 2.5ms*/ + out_samples = opus_decode(dec[t], 0, 0, outbuf, 120/factor+2, fec); + if(out_samples!=OPUS_BAD_ARG)test_failed(); + /*Test null pointer input*/ out_samples = opus_decode(dec[t], 0, -1, outbuf, 120/factor, fec); if(out_samples!=120/factor)test_failed(); @@ -230,8 +234,8 @@ int test_decoder_code0(int no_fuzz) /*We only test a subset of the modes here simply because the longer durations end up taking a long time.*/ static const int cmodes[4]={16,20,24,28}; - static const opus_uint32 cres[4]={116290185,2172123586,2172123586,2172123586}; - static const opus_uint32 lres[3]={3285687739,1481572662,694350475}; + static const opus_uint32 cres[4]={116290185,2172123586u,2172123586u,2172123586u}; + static const opus_uint32 lres[3]={3285687739u,1481572662,694350475}; static const int lmodes[3]={0,4,8}; int mode=fast_rand()%4; |