summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2015-08-06 17:35:52 +1000
committerDamien Zammit <damien@zamaudio.com>2015-08-06 17:35:52 +1000
commitac1abba3370cb65babd770929516a7b985ddbabb (patch)
tree1d94590128f0d6ff4687f4ff87c3387fb9882f0e
parentc3cdc096cbe0ac178cc537e82208089020d75204 (diff)
Cleanup
Signed-off-by: Damien Zammit <damien@zamaudio.com>
-rw-r--r--ptfformat.cc18
1 files changed, 4 insertions, 14 deletions
diff --git a/ptfformat.cc b/ptfformat.cc
index 0af15fc..42bb3f1 100644
--- a/ptfformat.cc
+++ b/ptfformat.cc
@@ -623,22 +623,12 @@ PTFFormat::parserest(void) {
if ((found = std::find(begin, finish, tr.reg)) != finish) {
tr.reg = (*found);
}
- //startbytes = (ptfunxored[l+3] & 0xf0) >> 4;
- startbytes = 4;
i = l+16;
offset = 0;
- switch (startbytes) {
- case 4:
- offset |= (uint32_t)(ptfunxored[i+3] << 24);
- case 3:
- offset |= (uint32_t)(ptfunxored[i+2] << 16);
- case 2:
- offset |= (uint32_t)(ptfunxored[i+1] << 8);
- case 1:
- offset |= (uint32_t)(ptfunxored[i]);
- default:
- break;
- }
+ offset |= (uint32_t)(ptfunxored[i+3] << 24);
+ offset |= (uint32_t)(ptfunxored[i+2] << 16);
+ offset |= (uint32_t)(ptfunxored[i+1] << 8);
+ offset |= (uint32_t)(ptfunxored[i]);
tr.reg.startpos = (int64_t)(offset*this->ratefactor);
if (tr.reg.length > 0) {
this->tracks.push_back(tr);