From 135d983433e741cf9658ff5d7457bdf37ef48ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Mon, 18 Jan 2010 04:32:47 +0000 Subject: This should fix FS#10917, and also fix channel swapping i introduced in r23784. Lets hope the third time's the charm git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24271 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/mp3_enc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/codecs/mp3_enc.c') diff --git a/apps/codecs/mp3_enc.c b/apps/codecs/mp3_enc.c index 20f5932576..d04b9e6c42 100644 --- a/apps/codecs/mp3_enc.c +++ b/apps/codecs/mp3_enc.c @@ -2091,12 +2091,12 @@ STATICIRAM void to_mono_mm(void) * |mmmmmmmmmmmmmmmm|mmmmmmmmmmmmmmmm| */ uint16_t *samp = &mfbuf[2*512]; - uint16_t *samp_end = samp + samp_per_frame; + uint16_t *samp_end = samp + 2*samp_per_frame; inline void to_mono(uint16_t **samp) { - int16_t l = **samp; - int16_t r = **(samp+1); + int16_t r = **samp; + int16_t l = *(*samp+1); int32_t m; switch(cfg.rec_mono_mode) -- cgit v1.2.3