Cleanup
This commit is contained in:
parent
f9bc460e36
commit
9a115b9d76
2 changed files with 2 additions and 25 deletions
|
@ -589,6 +589,8 @@ void opus_encoder_ctl(OpusEncoder *st, int request, ...)
|
|||
case OPUS_SET_VOICE_RATIO_REQUEST:
|
||||
{
|
||||
int value = va_arg(ap, int);
|
||||
if (value>100 || value<0)
|
||||
return OPUS_BAD_ARG;
|
||||
st->voice_ratio = value;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue