mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-08 04:00:44 +00:00
Fix for missing prs1 data offset bug.
Signed-off-by: Richard Freeman <rich0@gentoo.org>
This commit is contained in:
parent
e472b699d9
commit
91c5b50b7f
@ -523,7 +523,7 @@ bool PRS1Loader::ParseSummary(Machine *mach, qint32 sequence, quint32 timestamp,
|
|||||||
|
|
||||||
// up to this point appears to becorrect for 0x01 & 0x00
|
// up to this point appears to becorrect for 0x01 & 0x00
|
||||||
if (size<59) {
|
if (size<59) {
|
||||||
duration=data[offset+0x12] | (data[0x13] << 8);
|
duration=data[offset+0x12] | (data[offset+0x13] << 8);
|
||||||
duration*=2;
|
duration*=2;
|
||||||
session->really_set_last(qint64(timestamp+duration)*1000L);
|
session->really_set_last(qint64(timestamp+duration)*1000L);
|
||||||
if (max>0) {
|
if (max>0) {
|
||||||
@ -534,7 +534,7 @@ bool PRS1Loader::ParseSummary(Machine *mach, qint32 sequence, quint32 timestamp,
|
|||||||
} else {
|
} else {
|
||||||
// 0X28 & 0X29 is length on r5
|
// 0X28 & 0X29 is length on r5
|
||||||
|
|
||||||
duration=data[offset+0x14] | (data[0x15] << 8);
|
duration=data[offset+0x14] | (data[offset+0x15] << 8);
|
||||||
if (!duration) {
|
if (!duration) {
|
||||||
qDebug() << "!duration exit";
|
qDebug() << "!duration exit";
|
||||||
delete session;
|
delete session;
|
||||||
|
Loading…
Reference in New Issue
Block a user