2013-03-29, 16:49
(2013-03-29, 04:06)ezechiel1917 Wrote: Is it possible you could share the code so I could include this debug in my compile and help FernetMenta identify stuttering of my channels?No problem, here is the diff
Code:
--- parser.c-orig 2013-03-28 15:04:27.642355888 +0100
+++ parser.c 2013-03-28 22:18:22.154686725 +0100
@@ -90,12 +90,13 @@
if ((buf[6] & 0x30) != 0)
return hdr_len;
+ int64_t pts;
+
// parse PTS
if ((hdr_len >= 13) &&
((((buf[7] & 0xC0) == 0x80) && ((buf[9] & 0xF0) == 0x20)) ||
((buf[7] & 0xC0) == 0xC0) && ((buf[9] & 0xF0) == 0x30)))
{
- int64_t pts;
pts = ((int64_t)(buf[ 9] & 0x0E)) << 29 ;
pts |= ((int64_t) buf[10]) << 22 ;
pts |= ((int64_t)(buf[11] & 0xFE)) << 14 ;
@@ -164,6 +165,8 @@
else
m_curDTS = m_curPTS;
+ INFOLOG("%s: ID %02x, pts %09lx, m_curPTS %09lx, m_curDTS %09lx, m_Wrap %d, m_NoOfWraps %d", __FUNCTION__, buf[3], pts, m_curPTS, m_curDTS, m_Wrap, m_NoOfWraps);
+
return hdr_len;
}