Skip to content

Commit

Permalink
Fixed encoding mono MP3s.
Browse files Browse the repository at this point in the history
  • Loading branch information
enzo1982 committed Nov 28, 2018
1 parent 10048a2 commit 5f7e73e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/encoder/lame/worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ Int BoCA::SuperWorker::Run()
if (samplesLeft > 0)
{
if (format.channels == 2) dataLength = ex_lame_encode_buffer_interleaved(context, samplesBuffer + framesProcessed * samplesPerFrame, Math::Min(samplesLeft / 2, frameSize), packetBuffer + packetBuffer.Size() - maxPacketSize, maxPacketSize);
else dataLength = ex_lame_encode_buffer( context, samplesBuffer,
else dataLength = ex_lame_encode_buffer( context, samplesBuffer + framesProcessed * samplesPerFrame,
samplesBuffer + framesProcessed * samplesPerFrame, Math::Min(samplesLeft, frameSize), packetBuffer + packetBuffer.Size() - maxPacketSize, maxPacketSize);
}
else
Expand Down

0 comments on commit 5f7e73e

Please sign in to comment.