Skip to content
Snippets Groups Projects
Commit 32af90ae authored by Gregory Maxwell's avatar Gregory Maxwell
Browse files

Improve opus_decode() error code consistency.

parent 8714189c
No related branches found
No related tags found
No related merge requests found
......@@ -666,7 +666,7 @@ int opus_decode_native(OpusDecoder *st, const unsigned char *data,
tot_offset += offset;
if (count*st->frame_size > frame_size)
return OPUS_BAD_ARG;
return OPUS_BUFFER_TOO_SMALL;
nb_samples=0;
for (i=0;i<count;i++)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment