1
0
Fork 0
forked from len0rd/rockbox

Correct samplecount calculation, suggested by Markus Kaufhold

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7336 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2005-08-17 09:34:18 +00:00
parent e1fb48767b
commit a387805071

View file

@ -69,7 +69,7 @@ void recalc_samplecount(void)
it's probably not correct at all for MPEG2 and layer 1 */
samplecount = ((int64_t) ci->id3->frame_count) * 1152;
} else {
samplecount = ((int64_t) ci->id3->length) * current_frequency / 10;
samplecount = ((int64_t) ci->id3->length) * current_frequency / 1000;
}
samplecount -= start_skip + stop_skip;