[k3b] [Bug 341077] New: FLAC plugin's function seekToFrame may work incorrect
Vitaliy
vitfunk at yandex.ru
Tue Nov 18 11:33:11 UTC 2014
https://bugs.kde.org/show_bug.cgi?id=341077
Bug ID: 341077
Summary: FLAC plugin's function seekToFrame may work incorrect
Product: k3b
Version: unspecified
Platform: unspecified
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Plugins
Assignee: k3b at kde.org
Reporter: vitfunk at yandex.ru
CC: michalm at jabster.pl, trueg at kde.org
Multiply in the function seekToFrame may cause loss of data:
bool K3bFLACDecoder::Private::seekToFrame(int frame) {
FLAC__uint64 sample = frame * rate / 75;
return seek_absolute(sample);
}
Correct function:
bool K3bFLACDecoder::Private::seekToFrame(int frame) {
FLAC__uint64 sample = static_cast<FLAC__uint64>(frame) * rate / 75;
return seek_absolute(sample);
}
Reproducible: Sometimes
Steps to Reproduce:
1. Take the CD-Rip FLAC with CUE-sheet
2. Leave one random track from cd, remove other
3. Burn CD or make an image
4. Content of the track will different from the selected
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the k3b
mailing list