Improve opus_decode() error code consistency.
This commit is contained in:
parent
8714189c64
commit
32af90ae65
1 changed files with 1 additions and 1 deletions
|
@ -666,7 +666,7 @@ int opus_decode_native(OpusDecoder *st, const unsigned char *data,
|
||||||
tot_offset += offset;
|
tot_offset += offset;
|
||||||
|
|
||||||
if (count*st->frame_size > frame_size)
|
if (count*st->frame_size > frame_size)
|
||||||
return OPUS_BAD_ARG;
|
return OPUS_BUFFER_TOO_SMALL;
|
||||||
nb_samples=0;
|
nb_samples=0;
|
||||||
for (i=0;i<count;i++)
|
for (i=0;i<count;i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue