Bug 993303 - Correct the VorbisTrackEncoder::WriteLacing function. r=rillian

This commit is contained in:
Benjamin Chen 2014-04-11 13:54:15 +08:00
parent 4266c27429
commit 33f79cef24

View File

@ -80,7 +80,7 @@ VorbisTrackEncoder::Init(int aChannels, int aSamplingRate)
void VorbisTrackEncoder::WriteLacing(nsTArray<uint8_t> *aOutput, int32_t aLacing)
{
while (aLacing > 255) {
while (aLacing >= 255) {
aLacing -= 255;
aOutput->AppendElement(255);
}