fix m_uiYsfPacketFrameId and m_uiImrsPacketFrameId

to match the change on m_uiPacketCntr
This commit is contained in:
narspt 2022-02-06 21:08:53 +00:00 committed by GitHub
parent 3de68cd506
commit ee95248e95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,7 +174,10 @@ void CPacket::UpdatePids(uint32 pid)
} }
if ( m_uiYsfPacketFrameId == 0xFF ) if ( m_uiYsfPacketFrameId == 0xFF )
{ {
m_uiYsfPacketFrameId = ((pid / 5) & 0x7FU) << 1; if (IsDvHeader())
m_uiYsfPacketFrameId = 0;
else
m_uiYsfPacketFrameId = (((pid / 5) + 1) & 0x7FU) << 1;
} }
// imrs pid needs update ? // imrs pid needs update ?
if ( m_uiImrsPacketId == 0xFF ) if ( m_uiImrsPacketId == 0xFF )
@ -184,6 +187,9 @@ void CPacket::UpdatePids(uint32 pid)
} }
if ( m_uiImrsPacketFrameId == 0xFFFF ) if ( m_uiImrsPacketFrameId == 0xFFFF )
{ {
m_uiImrsPacketFrameId = LOWORD(pid / 5); if (IsDvHeader())
m_uiImrsPacketFrameId = 0;
else
m_uiImrsPacketFrameId = LOWORD((pid / 5) + 1);
} }
} }