Rockbox

Tasklist

FS#12246 - Progress bar cuesheet markers wrap with long audio files.

Attached to Project: Rockbox
Opened by Nick Peskett (nickp) - Friday, 26 August 2011, 03:54 GMT
Last edited by Andree Buschmann (Buschel) - Friday, 26 August 2011, 15:52 GMT
Task Type Bugs
Category Music playback
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Release 3.9
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When playing a file longer than around 6 hours with cuesheet support enabled, cues > around 6 hours cause long unsigned multiplication overflows, making the marker x offset wrap back to the start of the progress bar.

To reproduce:

Enable Settings > Playback Settings > Cuesheet Support.
Generate mp3 & cue using attached perl script.
There ought to be 10 evenly spaced cues, but they start wrapping after the sixth.

Solution (attached):

Cast the cue offset as a long long when performing the multiplication.
This task depends upon

Closed by  Andree Buschmann (Buschel)
Friday, 26 August 2011, 15:52 GMT
Reason for closing:  Accepted
Additional comments about closing:  Submitted with r30359.

Loading...