[ lame-Bugs-3551484 ] Bad mono encoding when using the interleaved functions
SourceForge.net <[email protected]>
| Newsgroups | gmane.comp.audio.mp3.lame |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #3551484, was opened at 2012-07-29 11:28 Message generated for change (Settings changed) made by robert You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100290&aid=3551484&group_id=290 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Libraries Group: None >Status: Closed >Resolution: Invalid Priority: 5 Private: No Submitted By: ortalz () Assigned to: Nobody/Anonymous (nobody) Summary: Bad mono encoding when using the interleaved functions Initial Comment: When using the interleaved functions (such as lame_encode_buffer_interleaved) for encoding a mono stream, bad output is coming out. Further investigation lead to a problem in lame_encode_buffer_template. When cfg->channels_in == 1, it calls lame_copy_inbuffer(gfc, buffer_l, buffer_r, nsamples, pcm_type, aa, norm); The value of aa is set to 2 when called from the interleaved functions. The aa parameter is passed on to lame_copy_inbuffer and define the jump value when copying the buffer. Jump value of 2 for mono stream result in skipping each second sample and accessing data beyond the buffer boundaries. ---------------------------------------------------------------------- Comment By: Robert Hegemann (robert) Date: 2012-07-30 00:25 Message: The interleaved functions always expect left and right channel data, see lame.h. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100290&aid=3551484&group_id=290 ------------------------------------------------------------------------------ Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-dev2dev