1
0
Fork 0
forked from len0rd/rockbox

Fix the first-frame memmove from pretending the data is interleaved, which it isn't anymore. This should fix all remaining gapless problems with Musepack.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9827 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thom Johansen 2006-04-29 02:00:14 +00:00
parent c9dfa68522
commit ee720278ad

View file

@ -435,8 +435,12 @@ mpc_decoder_decode_internal(mpc_decoder *d, MPC_SAMPLE_FORMAT *buffer)
output_frame_length -= d->samples_to_skip; output_frame_length -= d->samples_to_skip;
memmove( memmove(
buffer, buffer,
buffer + d->samples_to_skip * 2, buffer + d->samples_to_skip,
output_frame_length * 2 * sizeof (MPC_SAMPLE_FORMAT)); output_frame_length * sizeof (MPC_SAMPLE_FORMAT));
memmove(
buffer + MPC_FRAME_LENGTH,
buffer + MPC_FRAME_LENGTH + d->samples_to_skip,
output_frame_length * sizeof (MPC_SAMPLE_FORMAT));
d->samples_to_skip = 0; d->samples_to_skip = 0;
} }
} }