s/OPUS_CORRUPTED_DATA/OPUS_INVALID_PACKET/

This commit is contained in:
Jean-Marc Valin 2011-09-06 14:30:19 -04:00
parent 663a7fe938
commit 331e9fe0fd
5 changed files with 24 additions and 24 deletions

View file

@ -2289,7 +2289,7 @@ int celt_decode_with_ec(CELTDecoder * restrict st, const unsigned char *data, in
{
data0 = fromOpus(data0);
if (data0<0)
return OPUS_CORRUPTED_DATA;
return OPUS_INVALID_PACKET;
}
st->end = IMAX(1, st->mode->effEBands-2*(data0>>5));
LM = (data0>>3)&0x3;
@ -2297,7 +2297,7 @@ int celt_decode_with_ec(CELTDecoder * restrict st, const unsigned char *data, in
data++;
len--;
if (LM>st->mode->maxLM)
return OPUS_CORRUPTED_DATA;
return OPUS_INVALID_PACKET;
if (frame_size < st->mode->shortMdctSize<<LM)
return OPUS_BUFFER_TOO_SMALL;
else