summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2015-07-25 03:49:26 +1000
committerDamien Zammit <damien@zamaudio.com>2015-07-25 03:49:26 +1000
commit89076e00d8a343dcb540af2c4edef2fdc92c30cb (patch)
tree48c43a3eabb5ba6168c5581d6c90bda82156e8a4
parent86da872db38ccd63146670a3a9d582ef58b7d0b0 (diff)
Reverted bugfix that broke offsets
Signed-off-by: Damien Zammit <damien@zamaudio.com>
-rw-r--r--ptfformat.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ptfformat.cc b/ptfformat.cc
index 60c9d01..04d6348 100644
--- a/ptfformat.cc
+++ b/ptfformat.cc
@@ -266,9 +266,9 @@ PTFFormat::parse(void) {
break;
}
}
- startbytes = 0;
+ startbytes = (ptfunxored[j+3] & 0xf);
lengthbytes = (ptfunxored[j+2] & 0xf0) >> 4;
- offsetbytes = (ptfunxored[j+3] & 0xf);
+ offsetbytes = (ptfunxored[j+2] & 0xf);
if (type == 1) {
uint32_t start = 0;