diff options
author | Damien Zammit <damien@zamaudio.com> | 2015-07-25 03:35:27 +1000 |
---|---|---|
committer | Damien Zammit <damien@zamaudio.com> | 2015-07-25 03:35:27 +1000 |
commit | 86da872db38ccd63146670a3a9d582ef58b7d0b0 (patch) | |
tree | 2bffbb53c1311a3b23376faa2e3f53b41a782faf | |
parent | a7cb697abb4ba2b3301246592b7210bf6c485ddc (diff) |
Fixed bug with start offset
Signed-off-by: Damien Zammit <damien@zamaudio.com>
-rw-r--r-- | ptfformat.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ptfformat.cc b/ptfformat.cc index 04d6348..60c9d01 100644 --- a/ptfformat.cc +++ b/ptfformat.cc @@ -266,9 +266,9 @@ PTFFormat::parse(void) { break; } } - startbytes = (ptfunxored[j+3] & 0xf); + startbytes = 0; lengthbytes = (ptfunxored[j+2] & 0xf0) >> 4; - offsetbytes = (ptfunxored[j+2] & 0xf); + offsetbytes = (ptfunxored[j+3] & 0xf); if (type == 1) { uint32_t start = 0; |