1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 02:22:19 +00:00

fixed wrong deinterleaving of channels

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14551 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2005-01-21 07:22:04 +00:00
parent b46fa6a150
commit 8c7286fec0

View File

@ -119,8 +119,8 @@ int mpae_encode_toolame(mpae_toolame_ctx *ctx, uint8_t *dest, int nsamples, void
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);