Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#8967 - Database - negative autoscore

Attached to Project: Rockbox
Opened by PaulJam (PaulJam) - Tuesday, 06 May 2008, 02:04 GMT+2
Task Type Bugs
Category Database
Status Unconfirmed
Assigned To No-one
Player type All players
Severity Low
Priority Normal
Reported Version current build
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Private No

Details

Hi,

i noticed that some of my songs have a negative autoscore in the database.
There seems to be an overflow in the autoscore calculation when the playtime exceeds a certain value (propably (2^31)/100).

Here is the code where the overflow seems to happen (the multiplication of the playtime with 100).
apps/tagcache.c, line 794 and following:

data = 100 * idx->tag_seek[tag_playtime]
/ idx->tag_seek[tag_length]
/ idx->tag_seek[tag_playcount];


H300 with r17393
This task depends upon

Loading...