Better handling of DTX for range coder state checks
This commit is contained in:
parent
d48277374a
commit
2b98bdf532
2 changed files with 5 additions and 1 deletions
|
@ -442,7 +442,10 @@ static int opus_decode_frame(OpusDecoder *st, const unsigned char *data,
|
|||
st->channels, window, st->Fs);
|
||||
}
|
||||
|
||||
st->rangeFinal = dec.rng ^ redundant_rng;
|
||||
if (len <= 1)
|
||||
st->rangeFinal = 0;
|
||||
else
|
||||
st->rangeFinal = dec.rng ^ redundant_rng;
|
||||
|
||||
st->prev_mode = mode;
|
||||
st->prev_redundancy = redundancy;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue