[ 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 (Comment added) 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: Open Resolution: None 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/