From 9948b61e3c413bae411a4192c8599a22d3150813 Mon Sep 17 00:00:00 2001 From: xtne6f Date: Wed, 20 Oct 2021 21:16:03 +0900 Subject: [PATCH] Fix bit mask for PCR_PID extraction --- id3conv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/id3conv.cpp b/id3conv.cpp index 3c0dcd5..c801415 100644 --- a/id3conv.cpp +++ b/id3conv.cpp @@ -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; }