diff --git a/content/media/encoder/VorbisTrackEncoder.cpp b/content/media/encoder/VorbisTrackEncoder.cpp index 5ad24de1c0f0..aeefeb9557bb 100644 --- a/content/media/encoder/VorbisTrackEncoder.cpp +++ b/content/media/encoder/VorbisTrackEncoder.cpp @@ -80,7 +80,7 @@ VorbisTrackEncoder::Init(int aChannels, int aSamplingRate) void VorbisTrackEncoder::WriteLacing(nsTArray *aOutput, int32_t aLacing) { - while (aLacing > 255) { + while (aLacing >= 255) { aLacing -= 255; aOutput->AppendElement(255); }