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:
parent
c9dfa68522
commit
ee720278ad
1 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue