mirror of
https://github.com/xiph/opus.git
synced 2025-05-19 18:08:29 +00:00
Fix flooring of the pitch period
Without the 0.1 bias, the rounding error could cause an offset of -1
This commit is contained in:
parent
d533e4024d
commit
b9e0ea23e0
3 changed files with 4 additions and 4 deletions
|
@ -59,7 +59,7 @@ pcm_chunk_size = frame_size*feature_chunk_size
|
|||
|
||||
features = np.reshape(features, (nb_frames, feature_chunk_size, nb_features))
|
||||
features[:,:,18:36] = 0
|
||||
periods = (50*features[:,:,36:37]+100).astype('int16')
|
||||
periods = (.1 + 50*features[:,:,36:37]+100).astype('int16')
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue