mirror of
https://github.com/LX3JL/xlxd.git
synced 2025-12-06 07:42:01 +01:00
fix m_uiYsfPacketFrameId and m_uiImrsPacketFrameId
to match the change on m_uiPacketCntr
This commit is contained in:
parent
3de68cd506
commit
ee95248e95
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue