Fixing a high bit-rate bug in SILK -- now scales well above 64 kb/s

This commit is contained in:
Jean-Marc Valin 2010-07-05 18:34:33 -04:00
parent 47ae666715
commit 1c7decbb68
2 changed files with 1 additions and 3 deletions

2
silk

@ -1 +1 @@
Subproject commit 2bf4e44e1b5e35c68aec3cd23d87183d1ca6c686 Subproject commit 6f9a028cad836b8f41f479d244be849fc16e48b8

View file

@ -89,8 +89,6 @@ int hybrid_encode(HybridEncoder *st, const short *pcm, int frame_size,
ec_enc_init(&enc,&buf); ec_enc_init(&enc,&buf);
st->encControl.bitRate = (bytes_per_packet*50*8+4000)/2; st->encControl.bitRate = (bytes_per_packet*50*8+4000)/2;
if (st->encControl.bitRate>30000)
st->encControl.bitRate = 30000;
/* Call SILK encoder for the low band */ /* Call SILK encoder for the low band */
nBytes = bytes_per_packet; nBytes = bytes_per_packet;