Misc changes to address Robert Sparks' comments
See http://www.ietf.org/mail-archive/web/codec/current/msg02833.html Still more changes to come
This commit is contained in:
parent
8365b5d00d
commit
72273000ec
9 changed files with 158 additions and 92 deletions
|
@ -292,7 +292,7 @@ static int opus_decode_frame(OpusDecoder *st, const unsigned char *data,
|
|||
if (st->prev_mode==MODE_CELT_ONLY)
|
||||
silk_InitDecoder( silk_dec );
|
||||
|
||||
/* The SILK PLC cannot support produce frames of less than 10 ms */
|
||||
/* The SILK PLC cannot produce frames of less than 10 ms */
|
||||
st->DecControl.payloadSize_ms = IMAX(10, 1000 * audiosize / st->Fs);
|
||||
|
||||
if (data != NULL)
|
||||
|
@ -574,7 +574,7 @@ static int opus_packet_parse_impl(const unsigned char *data, int len,
|
|||
last_size = len-size[0];
|
||||
break;
|
||||
/* Multiple CBR/VBR frames (from 0 to 120 ms) */
|
||||
case 3:
|
||||
default: /*case 3:*/
|
||||
if (len<1)
|
||||
return OPUS_INVALID_PACKET;
|
||||
/* Number of frames encoded in bits 0 to 5 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue