Fix a comment in frame count byte decoding.

A comment in opus_decode() said, "bit 6 is ignored" when in
fact bit 6 is the padding flag, parsed in the previous block.

The comment, and the previous one, are modified to reflect
the current code.
This commit is contained in:
Ralph Giles 2011-07-29 00:44:08 -07:00 committed by Jean-Marc Valin
parent 6f06d3436d
commit bf79a080ea

View file

@ -465,7 +465,7 @@ int opus_decode(OpusDecoder *st, const unsigned char *data,
if (count <= 0 || st->frame_size*count*25 > 3*st->Fs) if (count <= 0 || st->frame_size*count*25 > 3*st->Fs)
return OPUS_CORRUPTED_DATA; return OPUS_CORRUPTED_DATA;
len--; len--;
/* Padding bit */ /* Padding flag is bit 6 */
if (ch&0x40) if (ch&0x40)
{ {
int padding=0; int padding=0;
@ -481,7 +481,7 @@ int opus_decode(OpusDecoder *st, const unsigned char *data,
} }
if (len<0) if (len<0)
return OPUS_CORRUPTED_DATA; return OPUS_CORRUPTED_DATA;
/* Bit 7 is VBR flag (bit 6 is ignored) */ /* VBR flag is bit 7 */
if (ch&0x80) if (ch&0x80)
{ {
/* VBR case */ /* VBR case */