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