Skip to content

Commit

Permalink
Fix bit mask for PCR_PID extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
xtne6f committed Oct 20, 2021
1 parent 6b00395 commit 9948b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion id3conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void CID3Converter::AddPmt(int pid, const PSI &psi)
}
const uint8_t *table = psi.data;
int serviceID = (table[3] << 8) | table[4];
m_pcrPid = ((table[8] & 0x03) << 8) | table[9];
m_pcrPid = ((table[8] & 0x1f) << 8) | table[9];
if (m_pcrPid == 0x1fff) {
m_pcr = -1;
}
Expand Down

0 comments on commit 9948b61

Please sign in to comment.