Making redundancy length decoding errors non-fatal
This commit is contained in:
parent
331e9fe0fd
commit
50ef21c0a9
1 changed files with 5 additions and 3 deletions
|
@ -323,9 +323,11 @@ static int opus_decode_frame(OpusDecoder *st, const unsigned char *data,
|
|||
}
|
||||
}
|
||||
len -= redundancy_bytes;
|
||||
if (len<0) {
|
||||
RESTORE_STACK;
|
||||
return OPUS_INVALID_PACKET;
|
||||
if (len<0)
|
||||
{
|
||||
len=0;
|
||||
redundancy_bytes=0;
|
||||
redundancy = 0;
|
||||
}
|
||||
/* Shrink decoder because of raw bits */
|
||||
dec.storage -= redundancy_bytes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue