[MPlayer-cvslog] CVS: main/libmpcodecs ae_toolame.c,1.2,1.3

Nico Sabbi CVS syncmail at mplayerhq.hu
Fri Jan 21 08:22:06 CET 2005


CVS change done by Nico Sabbi CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv19084

Modified Files:
	ae_toolame.c 
Log Message:
fixed wrong deinterleaving of channels

Index: ae_toolame.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ae_toolame.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ae_toolame.c	12 Oct 2004 20:32:14 -0000	1.2
+++ ae_toolame.c	21 Jan 2005 07:22:04 -0000	1.3
@@ -119,8 +119,8 @@
 	buffer = (uint16_t *) src;
 	for(i = 0; i < nsamples; i++)
 	{
-	    ctx->left_pcm[i] = buffer[2 * i];
-	    ctx->right_pcm[i] = buffer[2 * i + (ctx->channels - 1)];
+	    ctx->left_pcm[i] = buffer[ctx->channels * i];
+	    ctx->right_pcm[i] = buffer[(ctx->channels * i) + (ctx->channels - 1)];
 	}
 	
 	toolame_encode_buffer(ctx->toolame_ctx, ctx->left_pcm, ctx->right_pcm, nsamples, dest, max_size, &ret_size);




More information about the MPlayer-cvslog mailing list